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

Disassembly:
sub esp, 0x6c
push ebx
push esi
push edi
push ebp
call fcn.0047e190
mov ecx, eax
lea eax, [eax + eax*2]
cdq
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x1c], eax
sub eax, edx
push ebx
sar eax, 1
lea edx, [ecx + ecx*8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x48], edx
call fcn.0047e1a0
add esp, 4
movsx esi, ax
push ebx
call fcn.004c65e0
mov dword [esp + 0x2c], eax
add esp, 4
mov word [esp + 0x14], 4
mov byte [esp + 0x13], 0
push ebx
call dword [0x4f6cf0]
mov ebp, eax
push esi
push ebp
call dword [0x4f67a0]
mov word [esp + 0x16], 0
mov dword [esp + 0x78], eax
movsx esi, word [esp + 0x16]
mov eax, esi
lea edi, [esi + 1]
shl eax, 4
lea ecx, [esp + eax + 0x48]
push ecx
push edi
push ebx
call fcn.0047e1c0
mov ecx, dword [esp + 0x90]
add esp, 0xc
push edi
push ecx
call fcn.0047e670
add esp, 8
mov edi, eax
cmp dword [0x4eb22c], 0
mov eax, 1
je 0x47e754
push edi
call fcn.004b1510
add esp, 4
test eax, eax
je 0x47e75e
movzx ax, byte [edi]
jmp 0x47e761
mov ax, word [edi]
cmp ax, 0x30
jl 0x47e79c
cmp ax, 0x39
jg 0x47e79c
mov byte [esp + 0x12], al
lea eax, [esp + 0x12]
push eax
call fcn.004dab10
dec ax
add esp, 4
cmp dword [0x4eb22c], 0
mov word [esp + esi*2 + 0x20], ax
jne 0x47e791
inc edi
jmp 0x47e7a6
push edi
call dword [0x4f6c80]
mov edi, eax
jmp 0x47e7a6
mov ax, word [esp + 0x16]
mov word [esp + esi*2 + 0x20], ax
lea esi, [esp + esi*4 + 0x38]
push edi
call dword [0x4f6960]
mov dword [esi], eax
test eax, eax
je 0x47e7c6
push eax
push edi
push ebp
call fcn.0047e1e0
add esp, 0xc
mov dword [esi], eax
jmp 0x47e7cb
dec word [esp + 0x14]
inc word [esp + 0x16]
cmp word [esp + 0x16], 3
jl 0x47e70e
mov eax, dword [esp + 0x78]
push eax
push ebp
call dword [0x4f67a0]
push ebp
push ebx
call dword [0x4f6cf4]
cmp word [esp + 0x88], 1
jne 0x47e81f
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x28]
sub ecx, dword [esp + 0x48]
inc ecx
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x48], eax
add eax, ecx
mov dword [esp + 0x50], eax
jmp 0x47e8d9
cmp word [esp + 0x88], 2
jne 0x47e8d9
mov ecx, 3
mov eax, dword [esp + 0x28]
cdq
idiv ecx
mov ecx, eax
mov esi, dword [esp + 0x50]
sub esi, dword [esp + 0x48]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
lea edi, [ecx + eax]
mov eax, dword [esp + 0x58]
add edi, dword [esp + 0x18]
sub eax, dword [esp + 0x60]
cdq
sub eax, edx
sar eax, 1
lea edx, [eax + ecx*2]
cmp edi, edx
jge 0x47e8a1
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x50]
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov dword [esp + 0x48], eax
add eax, esi
mov esi, dword [esp + 0x58]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x50]
cdq
sub eax, edx
sar eax, 1
lea ecx, [eax + ecx*2]
mov eax, ecx
mov dword [esp + 0x58], ecx
sub eax, esi
jmp 0x47e8d5
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x18]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x50], eax
sub eax, ecx
mov ecx, dword [esp + 0x58]
add dword [esp + 0x48], eax
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x18]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x58], eax
sub eax, ecx
add dword [esp + 0x60], eax
xor si, si
xor edi, edi
movsx ecx, si
cmp dword [esp + ecx*4 + 0x38], edi
je 0x47e90f
movsx edx, word [esp + ecx*2 + 0x20]
shl edx, 4
inc ecx
mov eax, dword [esp + edx + 0x54]
mov ebp, dword [esp + edx + 0x50]
lea edx, [esp + edx + 0x48]
push eax
push ebp
mov eax, dword [edx + 4]
push eax
mov edx, dword [edx]
push edx
push ecx
push ebx
call fcn.0047e200
add esp, 0x18
inc si
cmp si, 3
jl 0x47e8de
mov di, 1
xor si, si
xor ebp, ebp
movsx eax, si
cmp dword [esp + eax*4 + 0x38], ebp
je 0x47e93b
cmp word [esp + eax*2 + 0x20], di
jne 0x47e93b
inc eax
push eax
push ebx
call fcn.0047e2a0
add esp, 8
inc si
cmp si, 3
jl 0x47e920
dec di
jns 0x47e91b
xor si, si
xor eax, eax
movsx ecx, si
cmp dword [esp + ecx*4 + 0x38], eax
jne 0x47e95d
inc si
cmp si, 3
jl 0x47e94c
test si, si
jle 0x47e9a8
cmp si, 3
jge 0x47e9a8
movsx eax, si
mov ax, word [esp + eax*2 + 0x20]
cmp ax, 2
jg 0x47e9a8
mov di, 3
sub di, ax
xor bp, bp
movsx eax, bp
cmp dword [esp + eax*4 + 0x38], 0
je 0x47e99c
cmp word [esp + eax*2 + 0x20], si
jne 0x47e99c
inc eax
push eax
push ebx
call fcn.0047e2c0
add esp, 8
inc bp
cmp bp, 3
jl 0x47e980
dec di
jne 0x47e97d
xor edx, edx
xor esi, esi
cmp dx, 3
jge 0x47e9e0
movsx eax, dx
mov edi, dword [esp + eax*4 + 0x38]
test edi, edi
je 0x47e9da
movsx eax, word [esp + eax*2 + 0x20]
shl eax, 4
mov ecx, dword [esp + eax + 0x50]
sub ecx, dword [esp + eax + 0x48]
sub ecx, edi
cmp ecx, dword [esp + 0x1c]
jge 0x47e9da
mov esi, 1
inc dx
test esi, esi
je 0x47e9ac
xor edx, edx
test esi, esi
je 0x47eb02
xor ecx, ecx
mov esi, dword [esp + 0x44]
sub esi, dword [esp + 0x1c]
movsx eax, dx
cmp dx, word [esp + 0x88]
jge 0x47ea0f
mov eax, dword [esp + eax*4 + 0x38]
cmp eax, esi
jg 0x47ea0b
mov eax, esi
add ecx, eax
jmp 0x47ea13
add ecx, dword [esp + eax*4 + 0x38]
inc dx
cmp dx, 3
jl 0x47e9f4
movsx edx, word [esp + 0x14]
mov eax, dword [esp + 0x1c]
imul edx, dword [esp + 0x18]
lea ebp, [eax + eax*2]
mov eax, dword [esp + 0x28]
add edx, ebp
add ecx, edx
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov esi, eax
test esi, esi
jge 0x47ea82
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.004c6580
mov eax, dword [esp + 0x3c]
add esp, 8
lea ecx, [esi*2]
sub eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x34]
sub eax, ecx
mov ecx, dword [esp + 0x30]
sub eax, dword [esp + 0x2c]
push eax
push ecx
mov eax, dword [esp + 0x34]
add eax, esi
xor esi, esi
push eax
push ebx
call fcn.0047e240
add esp, 0x14
xor di, di
add esi, dword [esp + 0x18]
cmp word [esp + 0x88], di
jle 0x47eb02
xor cx, cx
xor eax, eax
movsx edx, cx
cmp word [esp + edx*2 + 0x20], di
jne 0x47eaa8
cmp dword [esp + edx*4 + 0x38], eax
jne 0x47eab0
inc cx
cmp cx, 3
jl 0x47ea98
cmp cx, 3
jge 0x47eaf6
movsx ecx, cx
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + ecx*4 + 0x38]
and ebp, 0xffff
add ebp, dword [esp + 0x1c]
cmp ebp, eax
jg 0x47ead1
mov ebp, eax
movsx edx, di
shl edx, 4
mov eax, dword [esp + edx + 0x4c]
mov edx, dword [esp + edx + 0x54]
sub edx, eax
inc ecx
push edx
push ebp
push eax
push esi
push ecx
push ebx
call fcn.0047e270
add ebp, dword [esp + 0x30]
add esp, 0x18
add esi, ebp
inc di
cmp di, word [esp + 0x88]
jl 0x47ea93
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x6c
ret