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

Disassembly:
push 0xffffffffffffffff
push 0x49f2e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
mov ebx, ecx
push ebp
push esi
mov ecx, dword [ebx + 4]
push edi
call fcn.004805f0
mov ecx, dword [0x4b6930]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x47edb9
mov al, byte [ecx + 0x24]
test al, al
je 0x47ed3c
mov esi, ecx
mov eax, dword [esi + 0x6c]
test eax, eax
jbe 0x47ed32
lea ecx, [esi + 0x40]
call fcn.0047f1d0
mov eax, dword [eax]
add esi, 4
push esi
mov ecx, eax
call fcn.0047f6c0
test al, al
je 0x47ed2c
mov esi, dword [0x4b6930]
mov eax, dword [esi + 0x38]
lea ecx, [esi + 0x30]
dec eax
push eax
call fcn.0047f190
lea edi, [esi + 0x40]
mov ecx, edi
call fcn.0047f1d0
mov esi, dword [eax]
mov ecx, edi
call fcn.0047f220
lea ecx, [esi + 0x10]
call fcn.004181e0
test esi, esi
je 0x47ed17
mov ecx, esi
call fcn.0047fa00
push esi
call fcn.0048d500
add esp, 4
mov ecx, dword [0x4b6930]
mov al, byte [ecx + 0x90]
test al, al
jne 0x47ed32
call fcn.00485170
mov ecx, dword [0x4b6930]
mov byte [ecx + 0x24], 0
mov ecx, dword [0x4b6930]
test ecx, ecx
je 0x47edb9
mov esi, ecx
mov eax, dword [esi + 0x6c]
test eax, eax
jbe 0x47edb9
lea ecx, [esi + 0x40]
call fcn.0047f1d0
mov eax, dword [eax]
add esi, 4
push esi
mov ecx, eax
call fcn.0047f6c0
test al, al
je 0x47edb9
mov esi, dword [0x4b6930]
mov eax, dword [esi + 0x38]
lea ecx, [esi + 0x30]
dec eax
push eax
call fcn.0047f190
lea edi, [esi + 0x40]
mov ecx, edi
call fcn.0047f1d0
mov esi, dword [eax]
mov ecx, edi
call fcn.0047f220
lea ecx, [esi + 0x10]
call fcn.004181e0
test esi, esi
je 0x47eda4
mov ecx, esi
call fcn.0047fa00
push esi
call fcn.0048d500
add esp, 4
mov ecx, dword [0x4b6930]
mov al, byte [ecx + 0x90]
test al, al
jne 0x47edb9
call fcn.00485170
mov ebp, dword [esp + 0x74]
mov ecx, dword [ebx + 4]
push 4
mov ax, word [ebp + 4]
push eax
call fcn.00480850
mov cx, word [ebp + 6]
push 6
push ecx
mov ecx, dword [ebx + 4]
call fcn.00480850
mov ecx, dword [ebx + 4]
call fcn.00480580
mov edx, dword [0x4afd88]
push edx
call fcn.0048eacd
add esp, 4
mov edi, eax
mov al, byte [esp + 0x74]
lea ecx, [esp + 0x24]
push 0
mov byte [esp + 0x28], al
call fcn.0047f360
push 0x4b66a8
call fcn.0048eacd
add esp, 4
mov esi, eax
lea ecx, [esp + 0x24]
push 1
push esi
call fcn.0047f3d0
test al, al
je 0x47ee43
mov ecx, dword [esp + 0x28]
push esi
push 0x4b66a8
push ecx
call fcn.0047f100
add esp, 0xc
lea ecx, [esp + 0x24]
push esi
call fcn.0047f3b0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x6c], 0
test edi, edi
lea ecx, [eax + 8]
mov eax, dword [0x4afd88]
mov edx, edi
jbe 0x47ee83
mov si, word [eax]
cmp si, word [ecx]
jne 0x47ee70
add eax, 2
add ecx, 2
dec edx
jne 0x47ee5d
jmp 0x47ee83
mov dx, word [eax]
cmp dx, word [ecx]
sbb eax, eax
and al, 0xfe
inc eax
test eax, eax
jne 0x47ef4b
mov eax, dword [esp + 0x14]
lea edi, [eax + edi*2 + 8]
push edi
call fcn.0048eacd
add esp, 4
mov esi, eax
lea ecx, [esp + 0x24]
push 1
push esi
call fcn.0047f3d0
test al, al
je 0x47eebf
mov ecx, dword [esp + 0x28]
push esi
push edi
push ecx
call fcn.0047f100
add esp, 0xc
lea ecx, [esp + 0x24]
push esi
call fcn.0047f3b0
mov dl, byte [esp + 0x74]
push 0
lea ecx, [esp + 0x38]
mov byte [esp + 0x38], dl
call fcn.00401bb0
mov edi, 0x4b63f0
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x38]
push ebp
call fcn.0040aba0
test al, al
je 0x47ef16
mov edi, dword [esp + 0x38]
mov ecx, ebp
mov eax, ecx
mov esi, 0x4b63f0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x38]
call fcn.0040ab80
lea ecx, [esp + 0x34]
lea edx, [esp + 0x24]
push ecx
push edx
mov byte [esp + 0x74], 1
call fcn.004854b0
lea eax, [esp + 0x3c]
push eax
call fcn.00484630
add esp, 0xc
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], 0
push 1
call fcn.00401bb0
mov ebp, dword [esp + 0x74]
mov edx, dword [esp + 0x14]
mov al, byte [edx + 4]
mov cl, byte [edx + 5]
cmp al, 0xff
mov byte [esp + 0x18], al
mov byte [esp + 0x1c], cl
jne 0x47ef6a
cmp cl, al
jne 0x47ef6a
or esi, 0xffffffff
jmp 0x47ef83
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
and esi, 0xff
and ecx, 0xff
shl esi, 8
add esi, ecx
mov al, byte [edx + 6]
mov cl, byte [edx + 7]
movzx ax, al
xor dx, dx
mov word [ebp + 4], si
shl eax, 8
mov dl, cl
add eax, edx
mov word [ebp + 6], ax
mov ecx, dword [0x4b6930]
test ecx, ecx
je 0x47f0c2
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov ecx, dword [0x4b6930]
cmp byte [ecx + 0x90], 1
jne 0x47f0c2
cmp eax, 1
je 0x47efdd
cmp eax, 3
jne 0x47f0ba
cmp esi, 0xffffffff
je 0x47f0c2
mov dl, byte [esp + 0x74]
push 0
lea ecx, [esp + 0x48]
mov byte [esp + 0x48], dl
call fcn.00401bb0
lea eax, [esp + 0x13]
lea ecx, [esp + 0x54]
push eax
mov byte [esp + 0x70], 2
call fcn.0047f130
mov ecx, dword [0x4b6930]
mov edx, dword [0x4a0148]
push edx
push 0
lea esi, [ecx + 4]
lea ecx, [esp + 0x4c]
push esi
mov byte [esp + 0x78], 3
call fcn.0040a8e0
add esi, 0x10
lea ecx, [esp + 0x54]
push esi
call fcn.00413ab0
sub esp, 0x10
lea ecx, [esp + 0x54]
mov eax, esp
mov dword [esp + 0x30], esp
push eax
call fcn.0047f7b0
mov ecx, ebx
call fcn.0047e890
xor esi, esi
mov ecx, dword [esp + 0x58]
test ecx, ecx
jne 0x47f059
xor eax, eax
jmp 0x47f062
mov eax, dword [esp + 0x5c]
sub eax, ecx
sar eax, 2
cmp esi, eax
jge 0x47f084
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
push ecx
lea ecx, [esp + 0x5c]
call fcn.0047f8e0
mov ecx, ebx
call fcn.0047ea50
inc esi
jmp 0x47f04d
lea ecx, [esp + 0x54]
mov byte [esp + 0x6c], 4
call fcn.00401b60
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x70], 0
call fcn.00401bb0
push 1
lea ecx, [esp + 0x28]
mov dword [esp + 0x70], 0xffffffff
call fcn.0047f360
jmp 0x47ed36
cmp eax, 2
jne 0x47f0c2
or esi, 0xffffffff
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x47f0e8
mov al, byte [ecx - 1]
test al, al
je 0x47f0dc
cmp al, 0xff
je 0x47f0dc
dec al
mov byte [ecx - 1], al
jmp 0x47f0e8
add ecx, 0xfffffffe
push ecx
call fcn.0048d500
add esp, 4
mov ecx, dword [esp + 0x64]
mov ax, si
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x60
ret 4