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

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x28]
push esi
push edi
call fcn.004017c0
mov eax, dword [0x57f534]
xor edi, edi
test eax, eax
je 0x47d86c
nop word [eax + eax]
mov edi, eax
mov eax, dword [eax + 0x80]
test eax, eax
jne 0x47d860
push 0x84
push 1
call fcn.00458110
mov esi, eax
add esp, 8
test esi, esi
je 0x47db3a
push ebp
mov ebp, dword [esp + 0x2c]
mov dword [esi], 0x57f538
push dword [ebp]
call fcn.0041c330
add esp, 4
mov dword [esi + 0x10], eax
test eax, eax
jne 0x47d8b5
push esi
call fcn.00458150
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18
ret
mov dword [esi + 0x6c], 1
movzx eax, word [ebp + 4]
mov word [esi + 0x14], ax
movzx eax, word [ebp + 6]
mov word [esi + 0x16], ax
movzx eax, word [ebp + 0xc]
mov word [esi + 0x18], ax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x34], eax
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 0x28]
mov dword [esi + 0x3c], eax
movzx eax, word [ebp + 0x18]
mov word [esi + 0x40], ax
movzx eax, word [ebp + 0x1a]
mov word [esi + 0x42], ax
call fcn.0044b3e0
mov dword [esi + 0x58], eax
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x47d96c
push ecx
call fcn.0041db40
lea eax, [eax*2 + 2]
push eax
push dword [esp + 0x18]
push str.WCHAR_T
push str.UTF_8
call fcn.00459460
add esp, 0x14
mov dword [esp + 0x14], eax
test eax, eax
jne 0x47d96c
push dword [esp + 0x10]
call fcn.0041db40
lea eax, [eax*2 + 2]
push eax
push dword [esp + 0x18]
push str.UCS_2_INTERNAL
push str.UTF_8
call fcn.00459460
add esp, 0x14
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [esp + 0x10], eax
test eax, eax
je 0x47d9cc
push eax
call fcn.0041db40
lea eax, [eax*2 + 2]
push eax
push dword [esp + 0x18]
push str.WCHAR_T
push str.UTF_8
call fcn.00459460
mov ecx, eax
add esp, 0x14
test ecx, ecx
jne 0x47d9cc
push dword [esp + 0x10]
call fcn.0041db40
lea eax, [eax*2 + 2]
push eax
push dword [esp + 0x18]
push str.UCS_2_INTERNAL
push str.UTF_8
call fcn.00459460
add esp, 0x14
mov ecx, eax
mov dword [esi + 8], ecx
xor eax, eax
mov ebp, dword [ebp + 0x14]
test ebp, ebp
je 0x47da1e
push ebp
call fcn.0041db40
lea eax, [eax*2 + 2]
push eax
push ebp
push str.WCHAR_T
push str.UTF_8
call fcn.00459460
add esp, 0x14
test eax, eax
jne 0x47da1e
push ebp
call fcn.0041db40
lea eax, [eax*2 + 2]
push eax
push ebp
push str.UCS_2_INTERNAL
push str.UTF_8
call fcn.00459460
add esp, 0x14
push eax
push dword [esi + 8]
mov dword [esi + 0xc], eax
movzx eax, word [esi + 0x16]
push eax
movzx eax, word [esi + 0x14]
push eax
call fcn.0043b1b0
mov dword [esi + 4], eax
add esp, 0x10
mov eax, dword [esp + 0x14]
test eax, eax
je 0x47da4c
cmp byte [eax], 0
je 0x47da4c
mov dword [esi + 0x1c], eax
jmp 0x47da55
push eax
call fcn.00458150
add esp, 4
cmp dword [esi + 4], 0
mov eax, dword [esi + 8]
jne 0x47da8f
push eax
call fcn.00458150
push dword [esi + 0xc]
call fcn.00458150
push dword [esi + 0x1c]
call fcn.00458150
push dword [esi + 0x10]
call fcn.00458150
push esi
call fcn.00458150
add esp, 0x14
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18
ret
push 0
push 0x68
push dword [esi + 0xc]
push eax
movzx eax, word [esi + 0x18]
push eax
movzx eax, word [esi + 0x16]
push eax
movzx eax, word [esi + 0x14]
push eax
lea eax, [esp + 0x34]
push 3
push eax
call fcn.0043b0a0
push dword [esi + 0x3c]
push dword [esi + 0x38]
movups xmm0, xmmword [eax]
movzx eax, word [esi + 0x16]
push dword [esi + 0x34]
movups xmmword [esi + 0x20], xmm0
mov dword [esi + 0x48], 1
push dword [esi + 0x30]
push eax
movzx eax, word [esi + 0x14]
push eax
push dword [esi + 4]
call fcn.0047efa0
mov edx, dword [esp + 0x70]
add esp, 0x40
mov dword [esi + 0x4c], eax
test edx, edx
jle 0x47daff
mov dword [esi + 0x78], edx
xor ecx, ecx
mov dword [esi + 0x7c], ebx
mov eax, dword [ebx + ecx*4]
inc ecx
mov dword [eax + 0x74], esi
cmp ecx, edx
jl 0x47daf4
test edi, edi
je 0x47db0b
mov dword [edi + 0x80], esi
jmp 0x47db11
mov dword [0x57f534], esi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push esi
call fcn.0047ea80
add esp, 8
xor eax, eax
cmp dword [esp + 0x14], eax
cmovne esi, eax
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x18
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret