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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6ec
mov eax, dword [esp + 0x700]
mov edi, dword [esp + 0x708]
mov ecx, dword [esp + 0x704]
mov edx, dword [eax + 0x180]
mov dword [esp + 0x5c], eax
mov eax, dword [eax + 0x190]
mov dword [esp + 0x60], edi
mov edi, dword [esp + 0x70c]
mov dword [esp + 0x34], ecx
mov eax, dword [eax + edx*4]
mov dword [esp + 0x64], edi
mov dword [esp + 0x44], eax
mov eax, dword [eax + 0x14]
lea edi, [eax*4]
cmp eax, 0
mov edx, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], edi
jle 0x700473b1
mov esi, dword [ecx]
test esi, esi
jne 0x700473b3
xor eax, eax
jmp 0x70047343
mov ebx, dword [ecx + eax*4]
test ebx, ebx
jne 0x700473b3
add eax, 1
cmp edx, eax
jne 0x7004733c
mov eax, dword [esp + 0x44]
mov edx, 0x600
lea edi, [eax + 0x160]
test edi, 1
jne 0x70047be2
test edi, 2
jne 0x70047bff
mov ecx, edx
xor eax, eax
shr ecx, 2
test dl, 2
rep stosd dword es:[edi], eax
je 0x70047388
xor ebp, ebp
add edi, 2
mov word [edi - 2], bp
and edx, 1
je 0x70047390
mov byte [edi], 0
mov eax, dword [esp + 0x44]
mov dword [eax + 0x84], 0
mov dword [esp], eax
call fcn.7003ee50
add esp, 0x6ec
pop ebx
pop esi
pop edi
pop ebp
ret
je 0x7004734a
mov esi, dword [esp + 0x44]
mov ecx, 0x1b00
lea edi, [esp + 0xe0]
mov ebx, dword [esi + 0x18]
mov eax, ebx
and eax, 0x7c0000
shr eax, 0xa
add eax, 0x400
cmp eax, 0x1b00
cmovg eax, ecx
xor ebp, ebp
mov dword [esp + 0x40], eax
mov cx, 0x180
mov eax, ebp
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x38]
mov dword [esp], edi
call sub.msvcrt.dll_malloc
mov dword [esp], edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x78], eax
call sub.msvcrt.dll_malloc
mov dword [esp], edi
mov dword [esp + 0x54], eax
mov dword [esp + 0x7c], eax
call sub.msvcrt.dll_malloc
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x9c]
cmp eax, 1
jle 0x7004742f
and ebx, 8
jne 0x70047903
mov edi, dword [esp + 0x60]
mov dword [esp + 0x30], 0
test edi, edi
jne 0x7004785e
cmp eax, 6
jg 0x70047856
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x48], 0
mov dword [esp + 0x50], 0xffffffff
add ecx, 0x160
mov dword [esp + 0x68], ecx
and ecx, 1
mov dword [esp + 0x6c], ecx
cmp dword [esp + 0x48], eax
jge 0x7004764c
mov esi, dword [esp + 0x48]
test esi, esi
jne 0x700476dc
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 0xa0]
mov ecx, eax
mov dword [esp + 0x4c], eax
lea eax, [eax + eax*8]
lea edx, [ecx + eax*2]
mov eax, dword [esp + 0x44]
add edx, dword [eax + 0x7c0]
lea eax, [edx + 2]
mov dword [esp], eax
mov dword [esp + 0x2c], edx
call sub.msvcrt.dll_strlen
mov dword [esp + 0x20], eax
lea esi, [esi]
mov eax, dword [esp + 0x30]
lea edi, [esp + 0xe0]
mov ecx, dword [esp + 0x38]
test eax, eax
cmove eax, dword [esp + 0x34]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov ebx, dword [esp + 0x20]
xor eax, eax
mov ecx, 0x180
rep stosd dword es:[edi], eax
test ebx, ebx
jle 0x700476d5
mov ecx, dword [esp + 0x24]
mov ax, 0x800
lea esi, [esp + 0x80]
cmp ecx, 0x800
cmovle eax, ecx
xor ebx, ebx
mov dword [esp + 0x28], eax
lea eax, [esp + 0xe0]
mov dword [esp + 0x18], eax
xor eax, eax
mov ecx, 0x18
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
movsx eax, byte [edi + 1]
mov dword [esp + 0x84], eax
movsx edx, byte [edi + ebx + 2]
mov eax, 1
test edx, edx
cmovns eax, edx
mov dword [esp + 0x80], eax
mov eax, ebx
and eax, 1
mov edx, eax
mov eax, dword [esp + eax*4 + 0x78]
xor edx, 1
mov ebp, dword [esp + edx*4 + 0x78]
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
mov dword [esp + 0x1c], eax
mov edx, ebp
call fcn.700460b0
test ebx, ebx
je 0x7004784a
xor eax, eax
mov dword [esp + eax + 0x90], 0
add eax, 4
cmp eax, 0x20
jb 0x7004758e
mov edi, dword [esp + 0x18]
mov ecx, 0x18
mov edx, ebp
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x1c]
lea esi, [esp + 0x80]
mov ecx, dword [esp + 0x24]
add ebx, 1
mov dword [esp + 4], 1
mov dword [esp], esi
call fcn.700460b0
add dword [esp + 0x18], 0x60
cmp ebx, dword [esp + 0x20]
jne 0x70047528
mov eax, dword [esp + 0x20]
and eax, 1
mov esi, dword [esp + eax*4 + 0x78]
mov eax, dword [esp + 0x40]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
call fcn.700402e0
cmp eax, 0xffffffff
jne 0x70047618
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x70047618
sar dword [esp + 0x20], 1
jmp 0x700474c0
cmp dword [esp + 0x50], eax
mov ebx, eax
ja 0x7004774e
mov ebp, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
test ebp, ebp
jne 0x70047710
mov eax, dword [eax + 0x9c]
mov dword [esp + 0x48], 1
cmp dword [esp + 0x48], eax
jl 0x7004747b
mov eax, dword [esp + 0x5c]
cmp dword [eax + 0x18], 3
jle 0x7004787b
mov edx, dword [esp + 0x30]
test edx, edx
je 0x70047c1a
mov edi, dword [esp + 0x64]
mov ecx, edi
call fcn.70046af0
test edi, edi
jne 0x700478a8
mov esi, dword [esp + 0x60]
test esi, esi
jne 0x70047821
mov eax, dword [esp + 0x5c]
cmp dword [eax + 0x18], 3
jg 0x70047821
mov eax, dword [esp + 0x30]
test eax, eax
je 0x700476a3
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x58]
mov dword [esp + 0x700], eax
add esp, 0x6ec
pop ebx
pop esi
pop edi
pop ebp
jmp sub.msvcrt.dll_free
xor eax, eax
jmp 0x700475e6
mov ecx, dword [esp + 0x44]
mov ecx, dword [ecx + 0xa4]
test ecx, ecx
jne 0x700477d2
mov ecx, dword [esp + 0x44]
mov ebx, dword [ecx + 0xa0]
test ebx, ebx
je 0x70047c10
xor edx, edx
mov dword [esp + 0x4c], 0
jmp 0x7004749d
mov edx, dword [eax + 0xa4]
mov eax, 1
test edx, edx
je 0x70047734
mov eax, dword [esp + 0x44]
add edx, edx
mov eax, dword [eax + 0x98]
mov dword [esp + 0x18], eax
sub eax, 1
and eax, edx
mov ecx, dword [esp + 0x44]
add dword [esp + 0x48], 1
mov dword [ecx + 0xa4], eax
mov eax, dword [ecx + 0x9c]
jmp 0x70047471
mov eax, dword [esp + 0x38]
mov dword [esp + 4], esi
lea esi, [esp + 0xe0]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x6c]
mov eax, 0x600
mov edi, dword [esp + 0x68]
test edx, edx
jne 0x700478de
test edi, 2
jne 0x700478c9
mov ecx, eax
xor edx, edx
shr ecx, 2
test al, 2
rep movsd dword es:[edi], dword [esi]
je 0x700477a6
movzx edx, word [esi]
mov word [edi], dx
mov edx, 2
test al, 1
je 0x700477b1
movzx eax, byte [esi + edx]
mov byte [edi + edx], al
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x50], ebx
mov dword [eax + 0x84], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 0xa0], ecx
jmp 0x70047624
mov edi, dword [esp + 0x44]
mov ebx, dword [edi + 0xa0]
lea edi, [ecx - 1]
mov dword [esp + 0x4c], edi
and dword [esp + 0x4c], ebx
or dword [esp + 0x4c], ecx
mov edi, dword [esp + 0x4c]
lea edx, [edi + edi*8]
cmp ebx, edi
lea edx, [edi + edx*2]
jne 0x7004749d
mov edi, dword [esp + 0x44]
add ecx, ecx
mov edi, dword [edi + 0x98]
lea edx, [edi - 1]
mov dword [esp + 0x18], edi
and edx, ecx
mov ecx, dword [esp + 0x44]
mov dword [ecx + 0xa4], edx
jmp 0x70047471
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.7003f990
jmp 0x70047693
mov eax, esi
call fcn.70046030
jmp 0x700475a1
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x44]
mov dword [ecx + 0xa4], 0
mov dword [ecx + 0xa0], 0
jmp 0x7004744c
mov edi, dword [esp + 0x64]
test edi, edi
je 0x70047679
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
jmp 0x70047679
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
jmp 0x70047679
movzx edx, word [esi]
add edi, 2
add esi, 2
sub eax, 2
mov word [edi - 2], dx
jmp 0x7004778e
movzx eax, byte [esp + 0xe0]
lea esi, [esp + 0xe1]
mov byte [edi], al
mov eax, dword [esp + 0x44]
lea edi, [eax + 0x161]
mov eax, 0x5ff
jmp 0x70047782
lea ebx, [esp + 0x80]
mov eax, ebp
mov edi, ebx
mov ecx, 0x18
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x24]
mov esi, 0x800
mov edi, dword [esp + 0x3c]
mov dword [esp], ebx
mov dword [esp + 4], 0xffffffff
cmp eax, 0x800
cmovle esi, eax
mov eax, dword [esp + 0x34]
mov edx, edi
mov ecx, esi
mov dword [esp + 0x84], 2
mov dword [esp + 0x80], 0x12
call fcn.700460b0
mov eax, ebx
call fcn.70046030
mov ecx, dword [esp + 0x24]
mov edx, edi
mov eax, dword [esp + 0x34]
mov dword [esp], ebx
mov dword [esp + 4], 1
mov dword [esp + 0x3c], edi
mov edi, ebx
call fcn.700460b0
mov eax, ebp
mov ecx, 0x18
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x3c]
mov ecx, esi
mov esi, dword [esp + 0x54]
mov dword [esp], ebx
mov dword [esp + 4], 0xffffffff
mov eax, edi
mov edx, esi
mov dword [esp + 0x84], 2
mov dword [esp + 0x80], 0x11
call fcn.700460b0
mov ecx, dword [esp + 0x24]
mov edx, esi
mov eax, edi
mov dword [esp], ebx
mov ebx, esi
mov dword [esp + 4], 1
call fcn.700460b0
mov edi, dword [esp + 0x38]
mov dword [esp], edi
call sub.msvcrt.dll_malloc
mov ecx, dword [esp + 0x34]
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
mov esi, eax
mov dword [esp], esi
mov dword [esp + 0x30], eax
call sub.msvcrt.dll_memcpy
mov edi, dword [esp + 0x44]
mov esi, dword [edi + 0x18]
mov ebp, dword [edi + 0x154]
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [edi + 0x14]
mov dword [esp + 4], ebx
mov dword [esp], edi
and esi, 0x20000000
mov dword [esp + 8], eax
call fcn.7003f990
mov ebx, dword [edi + 0x14]
test byte [edi + 0x18], 0x40
jne 0x70047a86
test ebx, ebx
mov ebp, dword [esp + 0x54]
mov edi, dword [esp + 0x30]
je 0x70047a6f
mov esi, dword [edi]
add ebp, 4
add edi, 4
mov dword [esp + 8], 0
mov eax, dword [ebp - 4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.70041150
sub eax, dword [ebp - 4]
add eax, esi
mov dword [edi - 4], eax
sub ebx, 1
jne 0x70047a3f
mov eax, dword [esp + 0x44]
mov dword [esp + 0x60], 1
mov eax, dword [eax + 0x9c]
jmp 0x7004785e
test ebx, ebx
je 0x70047ba3
test esi, esi
mov edi, dword [esp + 0x30]
mov edx, ebp
setne byte [esp + 0x1c]
mov esi, dword [esp + 0x54]
xor eax, eax
mov dword [esp + 0x18], ebx
jmp 0x70047b31
mov ebp, eax
movzx ebx, ax
xor bp, bp
imul ebx, ecx
sar ebp, 9
imul ebp, ecx
shr ecx, 0x1f
sar ebx, 9
lea ebx, [ebx + ebp + 1]
sar ebx, 1
neg ebx
test cl, cl
je 0x70047b65
cmp byte [esp + 0x1c], 0
je 0x70047b65
test ebx, ebx
je 0x70047b65
cmp eax, ebx
jne 0x70047af5
lea eax, [ebx + 1]
test ebx, ebx
lea ecx, [ebx - 1]
cmovns eax, ecx
mov ebx, eax
mov ebp, dword [edi]
add esi, 4
add edi, 4
mov dword [esp + 8], 0
mov eax, dword [esi - 4]
mov dword [esp + 0x20], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.70041150
mov edx, dword [esp + 0x20]
sub eax, dword [esi - 4]
add eax, ebx
add ebp, eax
mov dword [edi - 4], ebp
sub dword [esp + 0x18], 1
je 0x70047ba1
test edx, edx
je 0x70047bc4
movsx ecx, word [edx]
add edx, 2
movsx ebx, ax
cmp eax, ebx
jne 0x70047aaa
mov ebx, eax
imul ebx, ecx
shr ecx, 0x1f
add ebx, 0x200
sar ebx, 0xa
neg ebx
test cl, cl
jne 0x70047ad1
mov ebp, dword [edi]
add esi, 4
add edi, 4
mov dword [esp + 8], 0
mov eax, dword [esi - 4]
mov dword [esp + 0x20], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.70041150
mov edx, dword [esp + 0x20]
sub eax, dword [esi - 4]
add ebx, eax
add ebp, ebx
mov dword [edi - 4], ebp
sub dword [esp + 0x18], 1
jne 0x70047b31
mov ebp, edx
test ebp, ebp
jne 0x70047a6f
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx + 0x128]
imul eax, dword [ecx + 0x14]
sub dword [ecx + 0x120], eax
jmp 0x70047a6f
mov ebx, dword [esp + 0x44]
mov ecx, dword [ebx + 0x120]
add ecx, dword [ebx + 0x128]
mov dword [ebx + 0x120], ecx
sar ecx, 0x10
jmp 0x70047b3f
lea edi, [eax + 0x161]
mov dx, 0x5ff
test edi, 2
mov byte [eax + 0x160], 0
je 0x70047371
xor eax, eax
add edi, 2
mov word [edi - 2], ax
sub edx, 2
jmp 0x70047371
mov edx, 1
jmp 0x70047812
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x5c]
call fcn.70046af0
jmp 0x70047679