Function at 0x476340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x528c21
mov eax, dword fs:[0]
push eax
sub esp, 0x47c
mov eax, dword [0x58057c]
xor eax, esp
mov dword [esp + 0x478], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58057c]
xor eax, esp
push eax
lea eax, [esp + 0x490]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4a0]
mov edi, ecx
mov esi, edx
lea ecx, [esp + 0x70]
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x64], vtable.t_reg.0
call fcn.00418990
xor ebx, ebx
mov eax, str.HKEY_CURRENT_USER
lea edx, [esp + 0x70]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], 0x80000001
call fcn.00418b90
push ebx
push ebx
push esi
push ebp
lea ecx, [esp + 0x74]
mov dword [esp + 0x4a8], ebx
call fcn.00419dc0
test al, al
je 0x4763e9
push ebp
lea eax, [esp + 0x24]
lea ecx, [esp + 0x68]
mov dword [esp + 0x24], ebx
call fcn.0041a4c0
test al, al
jne 0x47645b
mov ecx, ebp
call fcn.00417c00
mov edi, eax
push str.b_rN0RT
push 0x55e008
mov edx, edi
call fcn.00419360
push esi
push 0x55e008
mov edx, edi
call fcn.00419360
mov eax, dword [esp + 0x78]
add esp, 0x10
mov dword [esp + 0x64], vtable.t_reg.0
cmp eax, ebx
je 0x47642a
push eax
call dword [0x531050]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x70], vtable.t_str.0
cmp byte [esp + 0x18c], bl
jne 0x476454
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x7c]
cmp eax, ecx
je 0x476454
push eax
call fcn.004fe606
add esp, 4
xor al, al
jmp 0x476827
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x20], ebx
jbe 0x476793
lea ecx, [esp + 0x194]
call fcn.00418990
mov edx, dword [esp + 0x24]
push edx
push esi
push str._s_08d
lea edi, [esp + 0x1a0]
call fcn.00419380
mov edi, vtable.t_reg.0
add esp, 0xc
lea ecx, [esp + 0x2c8]
mov dword [esp + 0x2bc], edi
call fcn.00418990
mov eax, str.HKEY_CURRENT_USER
lea edx, [esp + 0x2c8]
mov dword [esp + 0x2c0], ebx
mov dword [esp + 0x2c4], 0x80000001
call fcn.00418b90
mov byte [esp + 0x498], 2
lea eax, [esp + 0x1a0]
cmp byte [esp + 0x2b0], bl
jne 0x4764e9
mov eax, dword [esp + 0x19c]
push ebx
push ebx
add eax, 4
push eax
push ebp
lea ecx, [esp + 0x74]
call fcn.00419dc0
test al, al
jne 0x476590
mov eax, dword [esp + 0x2c0]
mov dword [esp + 0x2bc], edi
cmp eax, ebx
je 0x47651a
push eax
call dword [0x531050]
mov edi, vtable.t_str.0
mov dword [esp + 0x2c0], ebx
mov dword [esp + 0x2c8], edi
cmp byte [esp + 0x3e4], bl
jne 0x476551
mov eax, dword [esp + 0x2d0]
lea ecx, [esp + 0x2d4]
cmp eax, ecx
je 0x476551
push eax
call fcn.004fe606
add esp, 4
mov byte [esp + 0x498], bl
mov dword [esp + 0x194], edi
cmp byte [esp + 0x2b0], bl
jne 0x47677c
mov eax, dword [esp + 0x19c]
lea edx, [esp + 0x1a0]
cmp eax, edx
je 0x47677c
push eax
call fcn.004fe606
add esp, 4
jmp 0x47677c
push 0x2c
lea eax, [esp + 0x3c]
push ebx
push eax
mov dword [esp + 0x40], ebx
call fcn.00503d40
add esp, 0xc
push 0x4e
lea edx, [esp + 0x3f2]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x3f8], cx
call fcn.00503d40
add esp, 0xc
push 0x4e
lea ecx, [esp + 0x442]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x448], ax
call fcn.00503d40
add esp, 0xc
push 1
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x444]
push eax
mov edi, 0x50
push ebp
mov eax, 0x55ff34
lea ecx, [esp + 0x74]
mov dword [esp + 0x3c], edi
call fcn.0041a040
test al, al
jne 0x476658
lea ecx, [esp + 0x2bc]
call fcn.00419d70
mov byte [esp + 0x498], bl
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
cmp byte [esp + 0x2b0], bl
jne 0x47677c
mov eax, dword [esp + 0x19c]
lea ecx, [esp + 0x1a0]
cmp eax, ecx
je 0x47677c
push eax
call fcn.004fe606
add esp, 4
jmp 0x47677c
lea eax, [esp + 0x43c]
lea ecx, [esp + 0x44]
call fcn.0041b600
test al, al
jne 0x47668f
lea ecx, [esp + 0x2bc]
call fcn.00419d70
mov byte [esp + 0x498], bl
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jmp 0x47655f
push 1
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x3f4]
push ecx
push ebp
mov eax, str.Profile
lea ecx, [esp + 0x74]
mov dword [esp + 0x3c], edi
call fcn.0041a040
test al, al
je 0x47675d
lea eax, [esp + 0x3ec]
lea ecx, [esp + 0x54]
call fcn.0041b600
test al, al
je 0x47675d
push str.KeyboardLayout
lea edx, [esp + 0x20]
push edx
push ebp
lea ecx, [esp + 0x70]
mov dword [esp + 0x28], ebx
call fcn.0041a440
test al, al
je 0x47675d
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
cmp eax, ebx
jne 0x47684f
mov byte [esp + 0x1b], bl
push ebp
lea ebx, [esp + 0x1f]
lea ecx, [esp + 0x38]
call fcn.0047e8e0
add esp, 4
test al, al
jne 0x47673a
lea ecx, [esp + 0x2bc]
call fcn.00419d70
lea ecx, [esp + 0x194]
mov byte [esp + 0x498], 0
call fcn.00418b30
xor ebx, ebx
jmp 0x47677c
cmp byte [esp + 0x1b], 0
je 0x476716
xor ebx, ebx
mov ax, word [esp + 0x4a4]
mov ecx, dword [esp + 0x28]
mov word [esp + 0x40], ax
lea eax, [esp + 0x34]
call fcn.0047e070
lea ecx, [esp + 0x2bc]
call fcn.00419d70
lea ecx, [esp + 0x194]
mov byte [esp + 0x498], bl
call fcn.00418b30
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x20]
jb 0x476469
mov edi, dword [esp + 0x28]
mov ebx, edi
call fcn.0047e280
mov ecx, dword [esp + 0x4a4]
push ecx
lea edx, [esp + 0x38]
push edx
push ebp
call fcn.00475610
add esp, 0xc
test al, al
jne 0x4767bb
mov ecx, ebp
call fcn.00417c50
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x20]
xor ebx, ebx
push ecx
mov dword [esp + 0x24], ebx
call fcn.0047e0e0
test al, al
je 0x4767e4
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
neg ecx
push edx
call fcn.0047e190
mov eax, dword [esp + 0x68]
mov dword [esp + 0x64], vtable.t_reg.0
cmp eax, ebx
je 0x4767fb
push eax
call dword [0x531050]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x70], vtable.t_str.0
cmp byte [esp + 0x18c], bl
jne 0x476825
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x7c]
cmp eax, ecx
je 0x476825
push eax
call fcn.004fe606
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x490]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x478]
xor ecx, esp
call fcn.004fdc2b
add esp, 0x488
ret
mov esi, eax
lea edi, [esp + 0x34]
call fcn.0047cf70
mov esi, dword [esp + 0x30]
jmp 0x476743