Function at 0x4724b0
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 0x4724d6
mov esi, ecx
mov eax, edx
inc ecx
add edi, 0x10
cmp ecx, 4
jl 0x4724cc
cdq
and edx, 0xffff
add eax, edx
mov ecx, eax
mov eax, dword [0x62bdb8]
sar ecx, 0x10
cmp ecx, eax
jge 0x472a5e
mov eax, ebx
mov edi, ebp
mov ebx, 3
mov edx, dword [edi]
cmp edx, eax
jle 0x47250b
mov eax, edx
add edi, 0x10
dec ebx
jne 0x472503
cdq
and edx, 0xffff
add edx, eax
sar edx, 0x10
mov dword [esp + 0x5c], edx
js 0x472a5e
mov eax, dword [0x62bdb8]
cmp edx, eax
jle 0x472534
mov dword [esp + 0x5c], eax
mov eax, dword [0x62bdc0]
mov ebx, dword [0x62bdc4]
imul eax, ecx
add eax, ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x28], eax
mov edx, ecx
mov eax, dword [ebx]
mov ebp, dword [ebx + 0xc]
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 4]
add ecx, 0xffffff01
mov dword [esp + 0x10], edx
test eax, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x70], ebp
jne 0x472767
shl esi, 4
mov dword [esp + 0x54], esi
lea eax, [esi + ebx + 0x14]
lea edi, [esi + ebx + 0x1c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x78], eax
jmp 0x4725a1
mov ecx, dword [esp + 0x1c]
cmp edx, ecx
jle 0x472642
mov edi, dword [esp + 0x78]
mov edx, dword [esp + 0x24]
mov eax, 0x10
mov ecx, esi
sub esi, eax
sub edi, eax
sub edx, eax
mov dword [esp + 0x54], esi
test esi, esi
mov dword [esp + 0x78], edi
mov dword [esp + 0x24], edx
jge 0x4725e5
mov eax, 0x40
add esi, eax
add edi, eax
add edx, eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x78], edi
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x78]
mov eax, dword [edx]
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
mov dword [esp + 0x1c], eax
js 0x472642
mov eax, dword [ecx + ebx + 0x18]
mov edi, dword [ecx + ebx + 0x10]
mov edx, dword [ecx + ebx + 0x1c]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
sub ecx, eax
mov dword [esp + 0x44], edi
test ecx, ecx
mov dword [esp + 0x14], edx
jle 0x472632
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
sub eax, edx
cdq
idiv ecx
mov dword [esp + 0x58], eax
mov eax, edi
sar eax, 0x10
jns 0x472642
imul eax, dword [esp + 0x50]
sub dword [esp + 0x18], eax
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jle 0x47269a
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
mov ecx, eax
add edi, 0x10
shl ecx, 4
inc eax
mov dword [esp + 0x2c], edi
cmp eax, 4
mov dword [esp + 0x20], eax
jl 0x47267c
sub eax, 4
mov dword [esp + 0x20], eax
mov eax, edi
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 + 0x40], eax
mov eax, dword [ecx + ebx + 0x10]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x47272c
mov eax, dword [esp + 0x44]
mov edx, dword [0x62bdbc]
sar eax, 0x10
cmp eax, edx
jge 0x47272c
mov ecx, dword [esp + 0x48]
sar ecx, 0x10
sub ecx, eax
test ecx, ecx
jle 0x47272c
lea edi, [ecx + eax]
cmp edi, edx
jle 0x4726cf
mov ecx, edx
sub ecx, eax
test eax, eax
jge 0x4726d9
add ecx, eax
js 0x47272c
xor eax, eax
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
lea edi, [edx + eax*2]
mov eax, dword [esp + 0x14]
sar eax, 9
and eax, 0x7f80
add eax, ebp
mov edx, esi
sar edx, 0x10
and edx, 0x7f
mov dl, byte [edx + eax]
test dl, dl
mov byte [esp + 0x4c], dl
je 0x47271a
mov edx, dword [esp + 0x4c]
and edx, 0xff
mov dx, word [edx*4 + 0x5d3980]
mov word [edi], dx
mov edx, dword [esp + 0x50]
add edi, 2
add esi, edx
dec ecx
test ecx, ecx
jg 0x4726f2
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x28]
add ecx, eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x62bdc0]
inc edx
add edi, ecx
cmp edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], edi
jl 0x47259d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
mov edi, esi
shl edi, 4
inc esi
mov dword [esp + 0x54], edi
shl esi, 4
add esi, ebx
lea eax, [edi + ebx + 0x14]
mov dword [esp + 0x24], esi
lea esi, [edi + ebx + 0x1c]
mov dword [esp + 0x38], esi
lea esi, [edi + ebx + 0x18]
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], eax
jmp 0x4727a4
mov ecx, dword [esp + 0x1c]
cmp edx, ecx
jle 0x472893
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, 0x10
mov ecx, edi
sub esi, eax
sub edx, eax
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x34]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x38]
sub edi, eax
sub esi, eax
sub edx, eax
mov dword [esp + 0x34], esi
test edi, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x38], edx
mov esi, 0x40
jge 0x472818
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
add edx, esi
add eax, esi
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
add edi, esi
add edx, esi
add eax, esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x2c]
mov eax, dword [edx]
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
mov dword [esp + 0x1c], eax
js 0x472898
mov eax, dword [ecx + ebx + 0x1c]
mov edx, dword [ecx + ebx + 0x10]
mov esi, dword [ecx + ebx + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
sub ecx, eax
mov dword [esp + 0x44], edx
test ecx, ecx
mov dword [esp + 0x18], esi
jle 0x472893
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
sub eax, edx
mov dword [esp + 0x64], eax
je 0x47286b
cdq
idiv ecx
mov dword [esp + 0x64], eax
mov edx, dword [esp + 0x34]
mov eax, dword [edx]
sub eax, esi
mov dword [esp + 0x68], eax
je 0x472880
cdq
idiv ecx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
mov eax, dword [eax]
sub eax, edx
cdq
idiv ecx
mov dword [esp + 0x58], eax
mov esi, 0x40
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jle 0x472920
mov eax, dword [esp + 0x20]
mov edx, 0x10
add dword [esp + 0x3c], edx
add dword [esp + 0x24], edx
mov ecx, eax
shl ecx, 4
inc eax
cmp eax, 4
mov dword [esp + 0x20], eax
jl 0x4728df
mov edx, dword [esp + 0x3c]
sub eax, 4
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
sub edx, esi
sub eax, esi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x3c]
mov eax, dword [edx]
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
mov dword [esp + 0x40], eax
js 0x472920
mov edx, dword [ecx + ebx + 0x10]
mov esi, dword [esp + 0x10]
mov ecx, eax
mov dword [esp + 0x48], edx
sub ecx, esi
test ecx, ecx
jle 0x472920
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
sub eax, edx
mov dword [esp + 0x6c], eax
je 0x472920
cdq
idiv ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x472a02
mov eax, dword [esp + 0x44]
mov ecx, dword [0x62bdbc]
sar eax, 0x10
cmp eax, ecx
jge 0x472a02
mov esi, dword [esp + 0x48]
sar esi, 0x10
sub esi, eax
test esi, esi
jle 0x472a02
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea edi, [esi + eax]
cmp edi, dword [0x62bdbc]
jle 0x47296d
mov esi, dword [0x62bdbc]
sub esi, eax
test eax, eax
jge 0x472993
add esi, eax
js 0x4729fe
mov edx, eax
imul eax, dword [esp + 0x60]
imul edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x18]
sub ecx, edx
mov edx, dword [esp + 0x14]
sub edx, eax
xor eax, eax
mov edi, dword [esp + 0x28]
lea edi, [edi + eax*2]
test edx, edx
jge 0x4729af
mov eax, ecx
sar eax, 0x10
and eax, 0x7f
mov al, byte [eax + ebp]
mov byte [esp + 0x4c], al
jmp 0x4729d2
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 + 0x70]
mov ebx, dword [esp + 0x78]
mov byte [esp + 0x4c], al
test al, al
je 0x4729ea
mov eax, dword [esp + 0x4c]
and eax, 0xff
mov ax, word [eax*4 + 0x5d3980]
mov word [edi], ax
mov eax, dword [esp + 0x50]
add edi, 2
add ecx, eax
mov eax, dword [esp + 0x60]
add edx, eax
dec esi
test esi, esi
jg 0x47299a
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x44]
add eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x68]
mov esi, dword [esp + 0x18]
add ecx, eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x6c]
add eax, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x48], eax
mov eax, dword [0x62bdc0]
add esi, edx
mov edx, dword [esp + 0x10]
add ecx, eax
mov eax, dword [esp + 0x5c]
inc edx
mov dword [esp + 0x18], esi
cmp edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], ecx
jl 0x4727a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret