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

Disassembly:
sub esp, 0x8c
mov eax, dword [0x4dffd0]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xa4]
mov edx, dword [esp + 0xa0]
push ebp
mov ebp, dword [esp + 0x98]
push esi
mov esi, dword [esp + 0xa0]
push edi
mov edi, dword [esp + 0xa8]
mov dword [esp + 0x14], eax
xor eax, eax
test esi, esi
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x38], edi
mov dword [esp + 0x48], edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
jbe 0x47ad66
movzx ecx, word [ebp + eax*2]
add word [esp + ecx*2 + 0x54], 1
lea ecx, [esp + ecx*2 + 0x54]
add eax, 1
cmp eax, esi
jb 0x47ad50
mov eax, dword [edx]
mov dword [esp + 0x10], eax
mov esi, 0xf
cmp word [esp + esi*2 + 0x54], 0
jne 0x47ad81
sub esi, 1
cmp esi, 1
jae 0x47ad71
cmp eax, esi
mov dword [esp + 0x24], esi
jbe 0x47ad8f
mov dword [esp + 0x10], esi
mov eax, esi
test esi, esi
jne 0x47add4
mov ecx, dword [edi]
mov word [esp + 0xe], si
mov byte [esp + 0xc], 0x40
mov byte [esp + 0xd], 1
mov eax, dword [esp + 0xc]
mov dword [ecx], eax
add dword [edi], 4
mov ecx, dword [edi]
mov dword [ecx], eax
add dword [edi], 4
pop edi
pop esi
mov dword [edx], 1
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0048e5b2
add esp, 0x8c
ret
push ebx
mov ebx, 1
cmp esi, ebx
jbe 0x47adef
mov edi, edi
cmp word [esp + ebx*2 + 0x58], 0
jne 0x47adef
add ebx, 1
cmp ebx, esi
jb 0x47ade0
cmp eax, ebx
jae 0x47adf7
mov dword [esp + 0x14], ebx
mov edx, 1
mov eax, edx
mov edi, edi
movzx ecx, word [esp + eax*2 + 0x58]
add edx, edx
sub edx, ecx
js 0x47ae26
add eax, 1
cmp eax, 0xf
jbe 0x47ae00
test edx, edx
jle 0x47ae2e
cmp dword [esp + 0xa0], 0
je 0x47ae26
cmp esi, 1
je 0x47ae2e
or eax, 0xffffffff
jmp 0x47b157
mov word [esp + 0x7a], 0
mov eax, 2
lea ebx, [ebx]
mov cx, word [esp + eax + 0x78]
add cx, word [esp + eax + 0x58]
add eax, 2
cmp eax, 0x1e
mov word [esp + eax + 0x78], cx
jb 0x47ae40
mov esi, dword [esp + 0xa8]
xor eax, eax
test esi, esi
jbe 0x47ae94
cmp word [ebp + eax*2], 0
je 0x47ae8d
movzx edx, word [ebp + eax*2]
movzx ecx, word [esp + edx*2 + 0x78]
mov edx, dword [esp + 0x18]
mov word [edx + ecx*2], ax
movzx edx, word [ebp + eax*2]
add word [esp + edx*2 + 0x78], 1
lea edx, [esp + edx*2 + 0x78]
add eax, 1
cmp eax, esi
jb 0x47ae64
mov edx, dword [esp + 0xa0]
xor ecx, ecx
mov eax, edx
sub eax, ecx
lea ebp, [ecx - 1]
je 0x47aee3
sub eax, 1
je 0x47aec1
mov dword [esp + 0x2c], 0x4c1a30
mov dword [esp + 0x34], 0x4c1a70
mov dword [esp + 0x30], ebp
jmp 0x47aef7
mov eax, 0x4c19b0
sub eax, 0x202
mov dword [esp + 0x2c], eax
mov eax, 0x4c19f0
sub eax, 0x202
mov dword [esp + 0x30], 0x100
jmp 0x47aef3
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0x13
mov dword [esp + 0x34], eax
mov eax, dword [edi]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x14]
mov eax, 1
shl eax, cl
cmp edx, 1
lea ecx, [eax - 1]
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], ecx
jne 0x47af2b
cmp eax, 0x354
jmp 0x47af35
cmp edx, 2
jne 0x47af3b
cmp eax, 0x250
ja 0x47b152
mov edx, dword [esp + 0x18]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
mov al, bl
sub al, dl
mov byte [esp + 0x11], al
movzx eax, word [edi]
movzx ecx, ax
cmp ecx, esi
jge 0x47af6d
mov byte [esp + 0x10], 0
mov word [esp + 0x12], ax
jmp 0x47af9a
jle 0x47af8e
movzx eax, word [edi]
mov ecx, dword [esp + 0x34]
add eax, eax
mov cl, byte [eax + ecx]
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x2c]
mov ax, word [eax + ecx]
mov word [esp + 0x12], ax
jmp 0x47af9a
mov byte [esp + 0x10], 0x60
mov word [esp + 0x12], 0
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x40]
mov ecx, ebx
sub ecx, edx
mov edx, 1
shl edx, cl
mov ecx, dword [esp + 0x1c]
shr edi, cl
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x54], eax
lea esi, [edx*4]
add edi, eax
lea ecx, [ecx + edi*4]
mov edi, dword [esp + 0x10]
jmp 0x47afd0
sub eax, edx
sub ecx, esi
test eax, eax
mov dword [ecx], edi
jne 0x47afd0
lea ecx, [ebx - 1]
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x20]
test ecx, eax
je 0x47aff6
lea esp, [esp]
shr eax, 1
test ecx, eax
jne 0x47aff0
xor edx, edx
cmp eax, edx
je 0x47b009
lea esi, [eax - 1]
and esi, ecx
add esi, eax
mov dword [esp + 0x20], esi
jmp 0x47b00d
mov dword [esp + 0x20], edx
add word [esp + ebx*2 + 0x58], 0xffff
movzx eax, word [esp + ebx*2 + 0x58]
add dword [esp + 0x18], 2
cmp ax, dx
jne 0x47b03c
cmp ebx, dword [esp + 0x28]
je 0x47b10e
mov edx, dword [esp + 0x18]
movzx eax, word [edx]
mov ecx, dword [esp + 0x50]
movzx ebx, word [ecx + eax*2]
cmp ebx, dword [esp + 0x14]
jbe 0x47af43
mov esi, dword [esp + 0x48]
and esi, dword [esp + 0x20]
cmp esi, ebp
mov dword [esp + 0x44], esi
je 0x47af43
mov edx, dword [esp + 0x1c]
test edx, edx
jne 0x47b06a
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x54]
mov ebp, dword [esp + 0x28]
lea eax, [eax + ecx*4]
mov ecx, ebx
sub ecx, edx
mov dword [esp + 0x24], eax
mov eax, 1
add edx, ecx
shl eax, cl
cmp edx, ebp
jae 0x47b0ae
lea esi, [esp + edx*2 + 0x58]
movzx edi, word [esi]
sub eax, edi
test eax, eax
jle 0x47b0aa
add edx, 1
add ecx, 1
add esi, 2
add eax, eax
cmp edx, ebp
jb 0x47b092
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x38]
mov eax, 1
shl eax, cl
add edx, eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xa0]
cmp eax, 1
mov dword [esp + 0x38], edx
jne 0x47b0d7
cmp edx, 0x354
jmp 0x47b0e2
cmp eax, 2
jne 0x47b0e4
cmp edx, 0x250
ja 0x47b152
mov eax, dword [esp + 0x3c]
mov edx, dword [eax]
mov ebp, esi
mov byte [edx + ebp*4], cl
mov ecx, dword [eax]
mov dl, byte [esp + 0x14]
mov byte [ecx + ebp*4 + 1], dl
mov eax, dword [eax]
mov ecx, dword [esp + 0x24]
sub ecx, eax
sar ecx, 2
mov word [eax + ebp*4 + 2], cx
jmp 0x47af43
mov eax, dword [esp + 0x20]
cmp eax, edx
je 0x47b133
sub bl, byte [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x10], 0x40
mov byte [esp + 0x11], bl
mov word [esp + 0x12], dx
mov edx, dword [esp + 0x10]
mov dword [ecx + eax*4], edx
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
lea ecx, [edx*4]
add dword [eax], ecx
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x14]
mov dword [eax], edx
xor eax, eax
jmp 0x47b157
mov eax, 1
mov ecx, dword [esp + 0x98]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0048e5b2
add esp, 0x8c
ret