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

Disassembly:
push 0xffffffffffffffff
push 0x4af01e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [ebp + 4]
xor esi, esi
mov dword [esp + 0x14], ebp
rep stosd dword es:[edi], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
lea eax, [esp + 0x48]
mov dword [esp + 0x17c], esi
push eax
call fcn.004724b0
add esp, 4
mov eax, dword [esp + 0x50]
mov byte [esp + 0x17c], 1
cmp eax, esi
je 0x475c0a
lea edx, [esp + 0x48]
lea ecx, [esp + 0x28]
call fcn.00475f40
mov ecx, dword [eax]
add eax, 4
mov dword [esp + 0x30], ecx
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x180], 2
call fcn.004651a0
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0x17c], 1
cmp ecx, esi
je 0x475ae0
call fcn.00404170
cmp dword [esp + 0x30], esi
jne 0x475c16
mov dl, byte [esp + 0x13]
push esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], dl
call fcn.00404f20
mov edi, str.Unable_to_open_message_catalog:
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x1c]
push ebx
call fcn.00405090
test al, al
je 0x475b40
mov edi, dword [esp + 0x1c]
mov ecx, ebx
mov eax, ecx
mov esi, str.Unable_to_open_message_catalog:
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.00405070
lea ecx, [esp + 0x48]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
mov byte [esp + 0x188], 3
call fcn.00473d80
add esp, 0xc
mov edi, eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x17c], 4
push ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x2c], 0x4d5fb8
call fcn.0045943a
mov dl, byte [edi]
push 0
lea ecx, [esp + 0x68]
mov byte [esp + 0x180], 5
mov byte [esp + 0x68], dl
call fcn.00404f20
mov eax, dword [0x4b1904]
lea ecx, [esp + 0x64]
push eax
push 0
push edi
call fcn.00404ca0
mov esi, 0x4b1940
mov dword [esp + 0x58], esi
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x180], 7
call fcn.00404f20
lea ecx, [esp + 0x58]
call fcn.00474ce0
mov dword [esp + 0x58], esi
push 1
lea ecx, [esp + 0x68]
mov byte [esp + 0x180], 8
call fcn.00404f20
lea ecx, [esp + 0x58]
mov byte [esp + 0x17c], 3
call fcn.004594c1
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x180], 1
call fcn.00404f20
mov eax, dword [esp + 0x30]
test eax, eax
je 0x475d5d
mov bl, 1
mov dword [esp + 0x28], 1
mov cl, bl
call fcn.00475360
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x3c], cl
lea ecx, [esp + 0x3c]
mov esi, eax
call fcn.00404f20
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x3c]
push ebp
call fcn.00405090
test al, al
je 0x475c78
mov edi, dword [esp + 0x3c]
mov ecx, ebp
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
call fcn.00405070
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x38]
mov byte [esp + 0x17c], 9
mov edx, dword [edi]
push eax
push ecx
push edx
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x24]
call fcn.00476020
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x180], 0xb
call fcn.00404f20
mov ecx, dword [esp + 0x20]
xor ebp, ebp
xor esi, esi
cmp ecx, ebp
jbe 0x475d0a
cmp ecx, esi
jb 0x475cf4
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x475cf4
mov dl, byte [eax - 1]
test dl, dl
je 0x475ce4
cmp dl, 0xff
je 0x475ce4
push ebp
push ecx
lea ecx, [esp + 0x20]
call fcn.00405090
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x475cf0
mov byte [eax - 1], 0xff
mov eax, dword [esp + 0x1c]
add eax, esi
jmp 0x475cf9
mov eax, 0x4b1900
xor ecx, ecx
inc esi
mov cl, byte [eax]
mov byte [ecx + edi + 4], bl
mov ecx, dword [esp + 0x20]
cmp ecx, esi
ja 0x475cc1
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x17c], 1
cmp eax, ebp
je 0x475d37
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x475d2e
cmp al, 0xff
je 0x475d2e
dec al
mov byte [ecx], al
jmp 0x475d37
push ecx
call fcn.00495cbf
add esp, 4
mov ecx, dword [esp + 0x28]
inc bl
inc ecx
cmp bl, 0x39
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ecx
jb 0x475c20
mov ebp, dword [esp + 0x14]
jmp 0x475d84
mov bl, 1
mov cl, bl
call fcn.00475360
test eax, eax
je 0x475d7d
mov cl, byte [eax]
test cl, cl
je 0x475d7d
and ecx, 0xff
inc eax
mov byte [ecx + ebp + 4], bl
jne 0x475d6a
inc bl
cmp bl, 0x39
jb 0x475d5f
mov bl, 0x41
lea edi, [ebp + 0x45]
mov byte [esp + 0x14], bl
cmp byte [edi], 0
jne 0x475dc2
mov esi, dword [esp + 0x14]
mov ecx, dword [ebp]
push esi
mov edx, 2
call fcn.00476920
test al, al
je 0x475dad
mov byte [edi], 0x16
jmp 0x475dc2
mov ecx, dword [ebp]
push esi
mov edx, 1
call fcn.00476920
test al, al
je 0x475dc2
mov byte [edi], 0x17
mov dl, bl
inc bl
inc edi
cmp dl, 0xff
mov byte [esp + 0x14], bl
jne 0x475d8d
xor esi, esi
xor eax, eax
mov byte [esp + eax + 0x74], al
inc eax
cmp eax, 0x100
jl 0x475dd4
mov ecx, dword [ebp]
lea edi, [ebp + 0x104]
push 0x100
push edi
lea eax, [esp + 0x7c]
push 0x100
push eax
push 0x100
push ecx
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
cmp eax, 0x100
jge 0x475e17
mov byte [edi + eax], al
inc eax
cmp eax, 0x100
jl 0x475e0c
mov ecx, dword [ebp]
lea edx, [ebp + 0x204]
push edx
lea eax, [esp + 0x78]
push 0x100
push eax
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_GetStringTypeExA]
mov ecx, dword [esp + 0x4c]
cmp ecx, esi
je 0x475e57
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x475e4e
cmp al, 0xff
je 0x475e4e
dec al
mov byte [ecx], al
jmp 0x475e57
push ecx
call fcn.00495cbf
add esp, 4
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov esi, dword [esp + 0x34]
test esi, esi
mov dword [esp + 0x17c], 0xffffffff
je 0x475ea6
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
mov ecx, eax
test ecx, ecx
jne 0x475ea6
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
mov edx, ecx
test edx, edx
jne 0x475ea6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [esp + 0x174]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x170
ret