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

Disassembly:
sub esp, 0x64
mov ecx, 1
push ebx
push ebp
mov ebp, dword [esp + 0x70]
push esi
xor esi, esi
push edi
mov ebx, dword [ebp + 0x14]
add ebp, 0x24
mov eax, ebx
mov edi, ebp
mov edx, dword [edi]
cmp edx, eax
jge 0x4724f6
mov esi, ecx
mov eax, edx
inc ecx
add edi, 0x10
cmp ecx, 4
jl 0x4724ec
cdq
and edx, 0xffff
add eax, edx
mov ecx, eax
mov eax, dword [0x608798]
sar ecx, 0x10
cmp ecx, eax
jge 0x472a82
mov eax, ebx
mov edi, ebp
mov ebx, 3
mov edx, dword [edi]
cmp edx, eax
jle 0x47252b
mov eax, edx
add edi, 0x10
dec ebx
jne 0x472523
cdq
and edx, 0xffff
add edx, eax
sar edx, 0x10
mov dword [esp + 0x60], edx
js 0x472a82
mov eax, dword [0x608798]
cmp edx, eax
jle 0x472554
mov dword [esp + 0x60], eax
mov eax, ecx
mov ebx, dword [0x6087a4]
imul eax, dword [0x6087a0]
add eax, ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x20], eax
mov edi, ecx
mov eax, dword [ebx]
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 4]
add ecx, 0xffffff01
mov dword [esp + 0x44], edi
test eax, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x64], eax
mov dword [esp + 0x58], edx
jne 0x472792
mov ebp, dword [esp + 0x50]
shl esi, 4
mov dword [esp + 0x3c], esi
lea eax, [ebx + esi + 0x14]
lea edx, [ebx + esi + 0x1c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], eax
jmp 0x4725c6
mov ecx, dword [esp + 0x14]
cmp edi, ecx
jle 0x47266b
mov edx, dword [esp + 0x24]
mov eax, 0x10
sub edx, eax
mov ecx, esi
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x28]
sub esi, eax
sub edx, eax
test esi, esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x28], edx
jge 0x472612
mov edx, dword [esp + 0x24]
mov eax, 0x40
add edx, eax
add esi, eax
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x28]
add edx, eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
mov dword [esp + 0x14], eax
js 0x47266b
mov edx, dword [ebx + ecx + 0x10]
mov eax, dword [ebx + ecx + 0x18]
mov ebp, dword [ebx + ecx + 0x1c]
mov ecx, dword [esp + 0x14]
sub ecx, edi
mov dword [esp + 0x1c], edx
test ecx, ecx
mov dword [esp + 0x10], eax
jle 0x472657
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
sub eax, ebp
cdq
idiv ecx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x1c]
sar eax, 0x10
jns 0x47266b
mov ecx, dword [esp + 0x4c]
imul ecx, eax
sub dword [esp + 0x10], ecx
cmp edi, dword [esp + 0x38]
jle 0x4726bd
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
mov ecx, eax
add edx, 0x10
shl ecx, 4
inc eax
mov dword [esp + 0x2c], edx
cmp eax, 4
mov dword [esp + 0x18], eax
jl 0x47269f
sub eax, 4
mov dword [esp + 0x18], eax
mov eax, edx
sub eax, 0x40
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x2c]
mov eax, dword [edx]
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
mov dword [esp + 0x38], eax
mov eax, dword [ebx + ecx + 0x10]
mov dword [esp + 0x40], eax
test edi, edi
jl 0x472764
mov eax, dword [esp + 0x1c]
mov edx, dword [0x60879c]
sar eax, 0x10
cmp eax, edx
jge 0x472764
mov ecx, dword [esp + 0x40]
sar ecx, 0x10
sub ecx, eax
test ecx, ecx
jle 0x472764
lea esi, [ecx + eax]
cmp esi, edx
jle 0x4726f2
mov ecx, edx
sub ecx, eax
test eax, eax
jge 0x4726fc
add ecx, eax
js 0x472760
xor eax, eax
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
lea esi, [edx + eax]
mov edx, dword [esp + 0x58]
mov eax, ebp
sar eax, 9
and eax, 0x7f80
add eax, edx
mov edx, edi
sar edx, 0x10
and edx, 0x7f
mov dl, byte [edx + eax]
test dl, dl
mov byte [esp + 0x48], dl
je 0x472750
mov edx, dword [esp + 0x48]
xor ebx, ebx
and edx, 0xff
mov bl, byte [edx + 0x58b0e0]
shl ebx, 8
xor edx, edx
mov dl, byte [esi]
mov dl, byte [ebx + edx + 0x5b0880]
mov ebx, dword [esp + 0x78]
mov byte [esi], dl
mov edx, dword [esp + 0x4c]
inc esi
add edi, edx
dec ecx
test ecx, ecx
jg 0x472717
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x20]
add ebp, eax
mov eax, dword [0x6087a0]
add ecx, eax
mov eax, dword [esp + 0x60]
inc edi
mov dword [esp + 0x20], ecx
cmp edi, eax
mov dword [esp + 0x44], edi
jl 0x4725c2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
mov eax, esi
shl eax, 4
inc esi
mov dword [esp + 0x54], eax
lea ebp, [ebx + eax + 0x1c]
lea edx, [ebx + eax + 0x14]
shl esi, 4
mov dword [esp + 0x30], ebp
lea ebp, [ebx + eax + 0x18]
add esi, ebx
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edx
jmp 0x4727d3
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x14]
cmp edi, ecx
jle 0x4728b8
mov esi, dword [esp + 0x28]
mov edx, 0x10
sub esi, edx
mov ecx, eax
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x2c]
sub esi, edx
sub eax, edx
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x24]
sub esi, edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x30]
sub esi, edx
mov dword [esp + 0x30], esi
mov esi, 0x40
test eax, eax
jge 0x472847
mov edx, dword [esp + 0x28]
add eax, esi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x2c]
add edx, esi
add eax, esi
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
add edx, esi
add eax, esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x2c]
mov eax, dword [edx]
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
mov dword [esp + 0x14], eax
js 0x4728bd
mov edx, dword [ebx + ecx + 0x10]
mov esi, dword [ebx + ecx + 0x18]
mov ebp, dword [ebx + ecx + 0x1c]
mov ecx, eax
sub ecx, edi
mov dword [esp + 0x1c], edx
test ecx, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x50], ebp
jle 0x4728b8
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
sub eax, edx
mov dword [esp + 0x68], eax
je 0x472894
cdq
idiv ecx
mov dword [esp + 0x68], eax
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
sub eax, esi
mov dword [esp + 0x6c], eax
je 0x4728a9
cdq
idiv ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
sub eax, ebp
cdq
idiv ecx
mov dword [esp + 0x5c], eax
mov esi, 0x40
cmp edi, dword [esp + 0x38]
jle 0x47293b
mov eax, dword [esp + 0x18]
mov edx, 0x10
add dword [esp + 0x34], edx
add dword [esp + 0x3c], edx
mov ecx, eax
shl ecx, 4
inc eax
cmp eax, 4
mov dword [esp + 0x18], eax
jl 0x4728fe
mov edx, dword [esp + 0x34]
sub eax, 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
sub edx, esi
sub eax, esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x34]
mov eax, dword [edx]
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
mov dword [esp + 0x38], eax
js 0x47293b
mov edx, dword [ebx + ecx + 0x10]
mov ecx, eax
sub ecx, edi
mov dword [esp + 0x40], edx
test ecx, ecx
jle 0x47293b
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
sub eax, edx
mov dword [esp + 0x70], eax
je 0x47293b
cdq
idiv ecx
mov dword [esp + 0x70], eax
test edi, edi
jl 0x472a2d
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x60879c]
sar eax, 0x10
cmp eax, ecx
jge 0x472a2d
mov esi, dword [esp + 0x40]
sar esi, 0x10
sub esi, eax
test esi, esi
jle 0x472a2d
mov ecx, dword [esp + 0x10]
lea edi, [esi + eax]
cmp edi, dword [0x60879c]
mov edx, ebp
jle 0x472982
mov esi, dword [0x60879c]
sub esi, eax
test eax, eax
jge 0x4729a8
add esi, eax
js 0x472a29
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x64]
imul edx, eax
imul edi, eax
mov ecx, dword [esp + 0x10]
sub ecx, edx
mov edx, ebp
sub edx, edi
xor eax, eax
mov edi, dword [esp + 0x20]
add edi, eax
test edx, edx
jge 0x4729c7
mov ebx, dword [esp + 0x58]
mov eax, ecx
sar eax, 0x10
and eax, 0x7f
mov al, byte [eax + ebx]
mov byte [esp + 0x48], al
jmp 0x4729ea
mov ebp, dword [esp + 0x58]
mov eax, edx
mov ebx, ecx
sar eax, 9
sar ebx, 0x10
and eax, 0x7f80
and ebx, 0x7f
add ebp, eax
mov al, byte [ebx + ebp]
mov ebp, dword [esp + 0x50]
mov byte [esp + 0x48], al
mov ebx, dword [esp + 0x78]
test al, al
je 0x472a17
mov eax, dword [esp + 0x48]
xor ebx, ebx
and eax, 0xff
mov bl, byte [eax + 0x58b0e0]
shl ebx, 8
xor eax, eax
mov al, byte [edi]
mov al, byte [ebx + eax + 0x5b0880]
mov ebx, dword [esp + 0x78]
mov byte [edi], al
mov eax, dword [esp + 0x4c]
inc edi
add ecx, eax
mov eax, dword [esp + 0x64]
add edx, eax
dec esi
test esi, esi
jg 0x4729ae
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x10]
add eax, ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x70]
add esi, edx
mov edx, dword [esp + 0x5c]
add ecx, eax
mov eax, dword [esp + 0x60]
add ebp, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x40], ecx
mov ecx, dword [0x6087a0]
inc edi
add edx, ecx
cmp edi, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x50], ebp
mov dword [esp + 0x44], edi
mov dword [esp + 0x20], edx
jl 0x4727cb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret