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

Disassembly:
sub esp, 0x70
mov eax, dword [0x651788]
xor eax, esp
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x78]
push ebx
push ebp
mov ebp, dword [esp + 0x7c]
push esi
mov dword [esp + 0x20], eax
xor eax, eax
push edi
mov ebx, ecx
lea esi, [esp + 0x54]
mov edi, ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], eax
call fcn.0047eab0
xor edi, edi
cmp eax, edi
jne 0x47f642
mov eax, dword [esp + 0x58]
cmp eax, edi
ja 0x47f0e3
mov esi, dword [esp + 0x54]
cmp esi, 0x80000000
jae 0x47f0e3
cmp eax, edi
ja 0x47f0e3
cmp esi, 0x4000000
jb 0x47f0fb
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.004aeca3
add esp, 0x70
ret
cmp esi, 0x20
ja 0x47f0e3
cmp esi, edi
mov dword [ebx + 0x10], esi
jne 0x47f1d4
mov dword [ebx], edi
cmp esi, edi
jbe 0x47f128
xor ecx, ecx
mov edx, esi
mov eax, dword [ebx]
lea eax, [ecx + eax + 0x10]
add ecx, 0x18
sub edx, 1
mov dword [eax], edi
mov dword [eax + 4], edi
jne 0x47f115
cmp esi, edi
mov dword [esp + 0x18], edi
jbe 0x47f0e3
mov dword [esp + 0x38], edi
mov ebx, dword [ebx]
add ebx, dword [esp + 0x38]
mov ecx, dword [ebp + 4]
cmp ecx, edi
mov dword [esp + 0x20], ebx
je 0x47f493
mov eax, dword [ebp]
add ecx, 0xffffffff
mov dword [ebp + 4], ecx
movzx edx, byte [eax]
add eax, 1
mov byte [esp + 0x13], dl
and edx, 0xf
mov dword [ebp], eax
mov edi, edx
mov esi, 0
jbe 0x47f191
jmp 0x47f170
test ecx, ecx
je 0x47f493
sub ecx, 1
mov dword [ebp + 4], ecx
mov dl, byte [eax]
mov byte [esp + esi + 0x6c], dl
add eax, 1
add esi, 1
cmp esi, edi
mov dword [ebp], eax
jb 0x47f170
cmp edi, 8
ja 0x47f0e3
xor eax, eax
cmp edi, eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
jbe 0x47f20c
lea esi, [esp + edi + 0x6b]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x20]
xor ebx, ebx
movzx eax, byte [esi]
cdq
mov ecx, ebx
call fcn.004b4f10
or dword [edi + 8], eax
or dword [edi + 0xc], edx
sub esi, 1
add ebx, 8
sub dword [esp + 0x28], 1
jne 0x47f1b4
jmp 0x47f210
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
lea ecx, [esi + esi*2]
add ecx, ecx
add ecx, ecx
add ecx, ecx
push ecx
push eax
call edx
add esp, 8
cmp eax, edi
mov dword [ebx], eax
jne 0x47f10d
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.004aeca3
add esp, 0x70
ret
mov edi, dword [esp + 0x20]
test byte [esp + 0x13], 0x10
je 0x47f2c0
lea esi, [esp + 0x5c]
mov edi, ebp
call fcn.0047eab0
test eax, eax
jne 0x47f642
mov ecx, dword [esp + 0x60]
test ecx, ecx
ja 0x47f0e3
mov eax, dword [esp + 0x5c]
jb 0x47f24b
cmp eax, 0x80000000
jae 0x47f0e3
test ecx, ecx
ja 0x47f0e3
jb 0x47f260
cmp eax, 0x4000000
jae 0x47f0e3
mov ebx, dword [esp + 0x20]
lea esi, [esp + 0x64]
mov dword [ebx], eax
call fcn.0047eab0
test eax, eax
jne 0x47f642
mov ecx, dword [esp + 0x68]
test ecx, ecx
ja 0x47f0e3
mov eax, dword [esp + 0x64]
jb 0x47f294
cmp eax, 0x80000000
jae 0x47f0e3
test ecx, ecx
ja 0x47f0e3
jb 0x47f2a9
cmp eax, 0x4000000
jae 0x47f0e3
cmp dword [ebx], 0x20
mov dword [ebx + 4], eax
ja 0x47f0e3
cmp eax, 0x20
ja 0x47f0e3
jmp 0x47f2d1
mov ebx, dword [esp + 0x20]
mov dword [edi], 1
mov dword [edi + 4], 1
test byte [esp + 0x13], 0x20
je 0x47f334
xor eax, eax
lea esi, [esp + 0x4c]
mov edi, ebp
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
call fcn.0047eab0
test eax, eax
jne 0x47f642
mov esi, dword [esp + 0x4c]
xor edi, edi
cmp esi, edi
mov dword [ebx + 0x14], edi
jne 0x47f307
mov dword [ebx + 0x10], edi
jmp 0x47f322
mov eax, dword [esp + 0x24]
push esi
push eax
mov eax, dword [eax]
call eax
add esp, 8
cmp eax, edi
mov dword [ebx + 0x10], eax
je 0x47f1f4
mov dword [ebx + 0x14], esi
mov edi, dword [ebx + 0x10]
mov eax, ebp
call fcn.0047ea30
test eax, eax
jne 0x47f642
test byte [esp + 0x13], 0x80
je 0x47f461
nop
mov eax, dword [ebp + 4]
test eax, eax
je 0x47f493
lea ecx, [eax - 1]
mov eax, dword [ebp]
mov dword [ebp + 4], ecx
mov bl, byte [eax]
mov dl, bl
and dl, 0xf
lea esi, [eax + 1]
movzx eax, dl
cdq
xor edi, edi
cmp edx, edi
mov dword [ebp], esi
ja 0x47f493
jb 0x47f379
cmp eax, ecx
ja 0x47f493
sub ecx, eax
add esi, eax
test bl, 0x10
mov dword [ebp + 4], ecx
mov dword [ebp], esi
je 0x47f414
lea esi, [esp + 0x3c]
mov edi, ebp
call fcn.0047eab0
test eax, eax
jne 0x47f642
mov ecx, dword [esp + 0x40]
test ecx, ecx
ja 0x47f0e3
mov eax, dword [esp + 0x3c]
jb 0x47f3bc
cmp eax, 0x80000000
jae 0x47f0e3
test ecx, ecx
ja 0x47f0e3
jb 0x47f3d1
cmp eax, 0x4000000
jae 0x47f0e3
lea esi, [esp + 0x2c]
call fcn.0047eab0
test eax, eax
jne 0x47f642
mov ecx, dword [esp + 0x30]
test ecx, ecx
ja 0x47f0e3
mov eax, dword [esp + 0x2c]
jb 0x47f3ff
cmp eax, 0x80000000
jae 0x47f0e3
test ecx, ecx
ja 0x47f0e3
jb 0x47f414
cmp eax, 0x4000000
jae 0x47f0e3
test bl, 0x20
je 0x47f455
xor eax, eax
lea esi, [esp + 0x44]
mov edi, ebp
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call fcn.0047eab0
test eax, eax
jne 0x47f642
mov edx, dword [esp + 0x48]
mov eax, dword [ebp + 4]
xor ecx, ecx
cmp edx, ecx
ja 0x47f493
mov ecx, dword [esp + 0x44]
jb 0x47f44d
cmp ecx, eax
ja 0x47f493
sub eax, ecx
add dword [ebp], ecx
mov dword [ebp + 4], eax
test bl, bl
js 0x47f340
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx]
add dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add eax, dword [ebx + 4]
add dword [esp + 0x38], 0x18
add ecx, 1
cmp ecx, dword [esp + 0x54]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
jae 0x47f4ab
mov ebx, dword [esp + 0x1c]
xor edi, edi
jmp 0x47f134
pop edi
pop esi
pop ebp
mov eax, 0x10
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.004aeca3
add esp, 0x70
ret
xor ebx, ebx
cmp eax, ebx
je 0x47f0e3
mov edi, dword [esp + 0x1c]
lea esi, [eax - 1]
cmp esi, ebx
mov dword [esp + 0x14], esi
mov dword [edi + 0x14], esi
jne 0x47f4cc
mov dword [edi + 4], ebx
jmp 0x47f4eb
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
lea ecx, [esi*8]
push ecx
push eax
call edx
add esp, 8
cmp eax, ebx
mov dword [edi + 4], eax
je 0x47f1f4
cmp esi, ebx
mov dword [esp + 0x18], ebx
jbe 0x47f5b0
jmp 0x47f500
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x18]
lea esi, [esp + 0x2c]
mov edi, ebp
lea ebx, [ecx + edx*8]
call fcn.0047eab0
test eax, eax
jne 0x47f642
mov ecx, dword [esp + 0x30]
test ecx, ecx
ja 0x47f0e3
mov eax, dword [esp + 0x2c]
jb 0x47f53e
cmp eax, 0x80000000
jae 0x47f0e3
test ecx, ecx
ja 0x47f0e3
jb 0x47f553
cmp eax, 0x4000000
jae 0x47f0e3
lea esi, [esp + 0x3c]
mov dword [ebx], eax
call fcn.0047eab0
test eax, eax
jne 0x47f642
mov ecx, dword [esp + 0x40]
test ecx, ecx
ja 0x47f0e3
mov eax, dword [esp + 0x3c]
jb 0x47f583
cmp eax, 0x80000000
jae 0x47f0e3
test ecx, ecx
ja 0x47f0e3
jb 0x47f598
cmp eax, 0x4000000
jae 0x47f0e3
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
jb 0x47f500
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
cmp ebx, eax
jb 0x47f0e3
mov edi, dword [esp + 0x1c]
mov esi, ebx
sub esi, eax
mov dword [esp + 0x28], esi
mov dword [edi + 0x18], esi
jne 0x47f655
mov dword [edi + 8], 0
xor ebx, ebx
test esi, esi
jbe 0x47f640
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 8]
lea ecx, [eax + ebx*4]
lea esi, [esp + 0x2c]
mov edi, ebp
mov dword [esp + 0x14], ecx
call fcn.0047eab0
test eax, eax
jne 0x47f642
mov ecx, dword [esp + 0x30]
test ecx, ecx
ja 0x47f0e3
mov eax, dword [esp + 0x2c]
jb 0x47f61c
cmp eax, 0x80000000
jae 0x47f0e3
test ecx, ecx
ja 0x47f0e3
jb 0x47f631
cmp eax, 0x4000000
jae 0x47f0e3
mov edx, dword [esp + 0x14]
add ebx, 1
cmp ebx, dword [esp + 0x28]
mov dword [edx], eax
jb 0x47f5e2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.004aeca3
add esp, 0x70
ret
lea eax, [esi*4]
push eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
push eax
call ecx
add esp, 8
test eax, eax
mov dword [edi + 8], eax
je 0x47f1f4
cmp esi, 1
jne 0x47f5dc
xor esi, esi
test ebx, ebx
jbe 0x47f6ab
mov ebp, dword [edi + 0x14]
xor ecx, ecx
test ebp, ebp
jbe 0x47f6ab
mov edx, dword [edi + 4]
nop
cmp dword [edx], esi
je 0x47f6a0
add ecx, 1
add edx, 8
cmp ecx, ebp
jb 0x47f690
jmp 0x47f6ab
test ecx, ecx
jl 0x47f6ab
add esi, 1
cmp esi, ebx
jb 0x47f686
cmp esi, ebx
je 0x47f0e3
mov ecx, dword [esp + 0x7c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004aeca3
add esp, 0x70
ret