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

Disassembly:
sub esp, 0x4b8
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x18], edi
call fcn.00462a30
xor esi, esi
lea ecx, [esp + 0x70]
mov dword [esp + 0x14], esi
call fcn.0046ddd0
mov eax, dword [edi + 0x18]
lea ebp, [esp + 0x70]
cmp eax, esi
je 0x47b317
mov ebp, eax
jmp 0x47b335
mov eax, dword [esp + 0x4cc]
push 0x4953a0
push eax
lea ecx, [esp + 0x78]
call fcn.00462cc0
test al, al
je 0x47b6e6
lea ecx, [esp + 0xb8]
push 0xe
push ecx
mov ecx, ebp
call fcn.00463100
test eax, eax
je 0x47b6d3
cmp word [esp + 0xb8], 0x4d42
je 0x47b363
push esi
push esi
mov ecx, ebp
call fcn.004631a0
lea edx, [esp + 0x1c]
push 0x28
push edx
mov ecx, ebp
call fcn.00463100
test eax, eax
je 0x47b6d3
mov eax, dword [esp + 0x1c]
cmp eax, 0xc
jne 0x47b3ee
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x4c], eax
and eax, 0xffff
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x4e]
mov word [esp + 0x28], cx
mov cx, word [esp + 0x52]
and eax, 0xffff
mov word [esp + 0x2a], cx
push 1
push 0xffffffffffffffe4
mov ecx, ebp
mov dword [esp + 0x24], 0x28
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
call fcn.004631a0
mov dword [esp + 0x14], 1
mov ax, word [esp + 0x2a]
xor ecx, ecx
cmp ax, 0x18
sete cl
cmp ecx, esi
mov dword [esp + 0x44], ecx
je 0x47b40d
mov ax, 0x10
mov word [esp + 0x2a], ax
mov edx, 1
cmp word [esp + 0x28], dx
jne 0x47b6d3
cmp ax, 8
je 0x47b42d
cmp ax, 0x10
jne 0x47b6d3
mov ecx, 0x10
call fcn.004642e0
mov ebx, eax
cmp ebx, esi
je 0x47b6dd
mov esi, dword [esp + 0x2a]
xor edx, edx
and esi, 0xffff
shr esi, 3
imul esi, dword [esp + 0x20]
add esi, 3
and esi, 0xfffffffc
mov ecx, esi
imul ecx, dword [esp + 0x24]
call fcn.004642e0
test eax, eax
mov dword [ebx + 8], eax
jne 0x47b483
lea ecx, [esp + 0x70]
call fcn.004630c0
mov ecx, ebx
call fcn.00464300
jmp 0x47b6e6
mov eax, dword [esp + 0x2a]
mov cx, word [esp + 0x20]
and eax, 0xffff
mov edx, 1
shr eax, 3
mov dword [edi + 0x1c], edx
mov dword [edi + 0x28], ebx
mov dword [edi + 0x20], eax
mov word [ebx], cx
mov ax, word [esp + 0x24]
mov word [ebx + 6], si
mov word [ebx + 2], ax
mov cx, word [edi + 0x20]
mov word [ebx + 4], cx
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x47b4d2
cmp word [esp + 0x2a], 8
ja 0x47b4d2
mov cl, byte [esp + 0x2a]
mov eax, edx
shl eax, cl
cmp dword [edi + 0x20], edx
jne 0x47b5a5
test byte [edi + 0x24], 8
jne 0x47b5a5
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0xc8]
lea esi, [esp + 0xc9]
rep stosd dword es:[edi], eax
mov edi, 0x100
lea edx, [esp + 0x12]
push 1
push edx
mov ecx, ebp
call fcn.00463100
mov al, byte [esp + 0x12]
lea ecx, [esp + 0x13]
push 1
push ecx
mov ecx, ebp
mov byte [esi + 1], al
call fcn.00463100
mov dl, byte [esp + 0x13]
lea eax, [esp + 0x11]
push 1
push eax
mov ecx, ebp
mov byte [esi], dl
call fcn.00463100
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x11]
test eax, eax
mov byte [esi - 1], cl
jne 0x47b552
push 1
push 1
mov ecx, ebp
call fcn.004631a0
add esi, 4
dec edi
jne 0x47b501
push 0x804
call fcn.0047e2df
add esp, 4
test eax, eax
je 0x47b591
push 0x100
lea edx, [esp + 0xcc]
push 0
push edx
mov ecx, eax
call fcn.0046abe0
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x2c], eax
mov edx, dword [eax + 0x800]
mov dword [ebx + 0xc], edx
jmp 0x47b5c3
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [ecx + 0x2c], eax
mov edx, dword [eax + 0x800]
mov dword [ebx + 0xc], edx
jmp 0x47b5c3
mov ecx, dword [esp + 0x14]
push edx
test ecx, ecx
je 0x47b5b4
lea eax, [eax + eax*2]
push eax
jmp 0x47b5bc
lea ecx, [eax*4]
push ecx
mov ecx, ebp
call fcn.004631a0
mov eax, dword [esp + 0x44]
mov esi, dword [ebx + 8]
test eax, eax
jne 0x47b5e7
movsx edx, word [ebx + 2]
movsx eax, word [ebx + 6]
imul edx, eax
push edx
push esi
mov ecx, ebp
call fcn.00463100
jmp 0x47b69d
movsx eax, word [ebx]
lea ecx, [eax + eax*2 + 3]
lea edx, [eax + eax*2]
movsx eax, word [ebx + 2]
and ecx, 0xfffffffc
sub ecx, edx
test eax, eax
mov dword [esp + 0x14], ecx
je 0x47b69d
mov dword [esp + 0x18], eax
jmp 0x47b610
mov ecx, dword [esp + 0x14]
movsx eax, word [ebx + 6]
cdq
sub eax, edx
sar eax, 1
je 0x47b684
mov edi, eax
lea eax, [esp + 0x11]
push 1
push eax
mov ecx, ebp
call fcn.00463100
mov cl, byte [esp + 0x11]
xor dx, dx
shr cl, 3
lea eax, [esp + 0x13]
mov dl, cl
push 1
push eax
mov ecx, ebp
mov word [esi], dx
call fcn.00463100
movzx cx, byte [esp + 0x13]
and ecx, 0xfff8
lea edx, [esp + 0x12]
shl ecx, 2
or word [esi], cx
push 1
push edx
mov ecx, ebp
call fcn.00463100
movzx ax, byte [esp + 0x12]
and eax, 0xfff8
add esi, 2
shl eax, 7
or word [esi - 2], ax
dec edi
jne 0x47b61d
mov ecx, dword [esp + 0x14]
push 1
push ecx
mov ecx, ebp
call fcn.004631a0
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x47b60c
movsx ecx, word [ebx + 6]
movsx eax, word [ebx + 4]
push ecx
movsx ecx, word [ebx]
movsx edx, word [ebx + 2]
imul eax, ecx
push edx
mov edx, dword [ebx + 8]
push eax
push edx
call fcn.0047bfa0
add esp, 0x10
lea ecx, [esp + 0x70]
call fcn.004630c0
mov dword [0x52246c], 0
jmp 0x47b6e6
mov dword [0x52246c], 2
lea ecx, [esp + 0x70]
call fcn.004630c0
lea ecx, [esp + 0x70]
call fcn.0046de00
lea ecx, [esp + 0x54]
call fcn.00462a80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4b8
ret 4