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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x502adc
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x5450d0]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
and dword [esp + 0x3c], 0
and dword [esp + 0x40], 0
lea ecx, [esp + 0x44]
call fcn.0045f38b
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x70]
push eax
mov ecx, ebx
call fcn.0045fd7f
lea ecx, [esp + 0x3c]
mov edx, eax
call fcn.004641ed
test al, al
jne 0x47eceb
movzx eax, word [ebx + 2]
push eax
call dword [0x50b6e8]
movzx eax, ax
test ax, ax
je 0x47eceb
mov eax, dword [esi + 0x24]
mov edi, dword [eax + 0x4a0]
movzx eax, word [ebx + 2]
push eax
call dword [0x50b6e8]
movzx eax, ax
lea ecx, [edi + 0x5d4]
call fcn.004d4909
test al, 1
je 0x47ed05
add edi, 0xc0
mov esi, edi
call fcn.00471d33
test al, al
je 0x47eceb
lea eax, [esp + 0x70]
push eax
mov ecx, ebx
call fcn.0045fd7f
push eax
lea esi, [esp + 0x40]
call fcn.004658a4
and dword [esp + 0x98], 0
mov ecx, eax
mov edx, edi
call fcn.004d0f0b
xor eax, eax
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x70]
push eax
mov ecx, ebx
call fcn.0045fd7f
lea edx, [edi + 0x594]
mov ecx, eax
call fcn.004d48b1
test al, 1
je 0x47ed56
add edi, 0xc0
mov esi, edi
call fcn.00471d33
test al, al
je 0x47eceb
lea eax, [esp + 0x70]
push eax
mov ecx, ebx
call fcn.0045fd7f
push eax
lea esi, [esp + 0x40]
call fcn.004658a4
mov dword [esp + 0x98], 1
jmp 0x47ece2
mov edx, dword [esi + 0x24]
mov eax, edx
call fcn.0048c5dc
test al, al
mov eax, dword [edx + 0x4a0]
je 0x47ed72
mov ecx, dword [eax + 0x8d0]
jmp 0x47ed78
mov ecx, dword [eax + 0x8cc]
cmp byte [eax + 0x80c], 0
mov dword [esp + 0x1c], ecx
je 0x47ede6
lea eax, [esp + 0x70]
push eax
mov ecx, ebx
call fcn.0045fd7f
push eax
lea eax, [esp + 0x40]
push eax
mov eax, esi
call fcn.0047d26d
push dword [esp + 0x48]
lea edi, [esp + 0x28]
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x48]
push ebx
call fcn.0047ff2d
mov ecx, dword [eax]
mov edi, dword [eax + 4]
add esp, 0x14
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edi
test ecx, ecx
je 0x47edd2
cmp ecx, dword [esp + 0x44]
je 0x47edd7
call 0x511b64
cmp edi, dword [esp + 0x48]
je 0x47ee8e
jmp 0x47f065
mov ebx, dword [esi + 0x18]
xor eax, eax
lea edi, [esp + 0x24]
stosb byte es:[edi], al
lea edi, [esp + 0x2c]
call fcn.004d12f5
lea eax, [esp + 0x34]
mov ecx, esi
call fcn.0046c386
push dword [eax + 4]
mov ecx, dword [ebp + 8]
push dword [eax]
lea eax, [esp + 0x78]
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [esp + 0x34]
push eax
call fcn.0045fd7f
push eax
lea edi, [esp + 0x54]
call fcn.0047ff87
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
add esp, 0x18
lea eax, [esp + 0x3c]
mov ecx, esi
call fcn.0046c386
mov edi, eax
lea esi, [esp + 0x2c]
call fcn.0049d414
test al, al
jne 0x47ee8a
mov eax, esi
call fcn.004803ae
mov ecx, dword [ebp + 8]
mov esi, eax
lea eax, [esp + 0x70]
push eax
call fcn.0045fd7f
mov edi, eax
mov eax, dword [esi]
lea ebx, [esp + 0x3c]
call fcn.0047d34c
mov ecx, edi
mov edx, eax
call fcn.004641ed
test al, al
jne 0x47f05e
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x47ef10
cmp dword [esi + 0x1c], edi
jl 0x47ef10
cmp dword [ebp + 0x10], 0x10
je 0x47eceb
push esi
call fcn.0047dc78
xor eax, eax
cmp dword [esi + 0x1c], edi
jge 0x47eced
mov ebx, dword [esi + 0x18]
lea edi, [esp + 0x24]
stosb byte es:[edi], al
lea edi, [esp + 0x1c]
call fcn.004d12f5
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x3c]
call fcn.0046c386
push dword [eax + 4]
mov ecx, dword [ebp + 8]
push dword [eax]
lea eax, [esp + 0x78]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x34]
push eax
call fcn.0045fd7f
push eax
lea edi, [esp + 0x4c]
call fcn.0047ff87
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov esi, dword [esp + 0x30]
add esp, 0x18
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
mov ebx, dword [esi + 0x18]
lea edi, [esp + 0x24]
call fcn.004d12f5
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x47ef2a
cmp eax, dword [esp + 0x24]
je 0x47ef2f
call 0x511b64
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x18]
sub eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x20]
cmp ecx, eax
jle 0x47ef46
inc ecx
mov dword [esi + 0x20], ecx
mov edi, dword [ebp + 8]
lea eax, [esp + 0x70]
push eax
mov ecx, edi
call fcn.0045fd7f
cmp dword [eax], 1
mov eax, dword [esi + 0x24]
sete byte [esp + 0x17]
cmp byte [esp + 0x17], 0
je 0x47ef72
mov eax, dword [eax + 0x4a0]
lea ebx, [eax + 0x24]
jmp 0x47ef7b
mov ebx, dword [eax + 0x4a0]
add ebx, 0xc
mov eax, dword [ebx]
test eax, eax
je 0x47ef87
mov ecx, dword [eax]
mov dword [ebx], ecx
jmp 0x47ef8c
call fcn.0047fe24
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x47eceb
cmp byte [esp + 0x17], 0
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x4a0]
mov eax, 0x1f4
je 0x47efb7
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x34], eax
jmp 0x47efbd
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x1c], eax
cmp byte [esp + 0x17], 0
mov dword [esp + 0x24], ebx
je 0x47efe1
push dword [ebp + 0x10]
mov ecx, edi
push 1
mov dword [esp + 0xa0], 2
call fcn.0047d2fb
jmp 0x47effc
push dword [ebp + 0x10]
mov esi, ebx
push 1
mov dword [esp + 0xa0], 3
call fcn.0047d2b9
mov esi, dword [esp + 0x18]
or dword [esp + 0x98], 0xffffffff
push dword [esp + 0x30]
lea eax, [esp + 0x20]
push dword [esp + 0x30]
push eax
lea eax, [esp + 0x48]
push eax
push esi
call fcn.0047f467
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], ecx
call fcn.004803ae
test byte [ebp + 0x14], 2
mov edi, dword [eax]
je 0x47f041
or byte [edi + 0x2c], 4
inc dword [esi + 0x2c]
movzx eax, byte [esi + 0x30]
push eax
push esi
mov eax, edi
call fcn.0047de1e
test al, al
je 0x47f0ff
inc dword [esi + 0x28]
jmp 0x47f0ff
mov ebx, dword [ebp + 8]
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x2c]
call fcn.004803ae
mov edi, dword [eax]
movzx eax, byte [esi + 0x30]
push eax
push esi
mov eax, edi
call fcn.0047de1e
or byte [edi + 0x2c], 1
mov byte [esp + 0x17], al
movzx eax, word [ebx + 2]
push eax
call dword [0x50b6e8]
movzx eax, ax
mov word [edi + 0x18], ax
mov eax, dword [ebp + 0x10]
and eax, 0x3f
shl eax, 8
or dword [edi + 0x30], eax
mov eax, dword [edi + 0x28]
test al, 0x1f
jbe 0x47f0bd
cmp dword [ebp + 0x10], 1
jne 0x47f0bd
lea ecx, [eax - 1]
xor ecx, eax
and ecx, 0x1f
xor ecx, eax
mov dword [edi + 0x28], ecx
test byte [ebp + 0x14], 2
je 0x47f0d6
cmp dword [edi + 0x10], 0
jne 0x47f0d6
test byte [edi + 0x2c], 4
jne 0x47f0d2
inc dword [esi + 0x2c]
or byte [edi + 0x2c], 4
movzx eax, byte [esi + 0x30]
push eax
push esi
mov eax, edi
call fcn.0047de1e
cmp byte [esp + 0x17], al
je 0x47f0ff
xor eax, eax
cmp byte [esp + 0x17], al
sete al
lea eax, [eax + eax - 1]
add dword [esi + 0x28], eax
jns 0x47f0ff
and dword [esi + 0x28], 0
mov eax, edi
jmp 0x47eced