Function at 0x473040
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 0x473066
mov esi, ecx
mov eax, edx
inc ecx
add edi, 0x10
cmp ecx, 4
jl 0x47305c
cdq
and edx, 0xffff
add eax, edx
mov ecx, eax
mov eax, dword [0x608798]
sar ecx, 0x10
cmp ecx, eax
jge 0x4735dd
mov eax, ebx
mov edi, ebp
mov ebx, 3
mov edx, dword [edi]
cmp edx, eax
jle 0x47309b
mov eax, edx
add edi, 0x10
dec ebx
jne 0x473093
cdq
and edx, 0xffff
add edx, eax
sar edx, 0x10
mov dword [esp + 0x5c], edx
js 0x4735dd
mov eax, dword [0x608798]
cmp edx, eax
jle 0x4730c4
mov dword [esp + 0x5c], eax
mov eax, ecx
mov ebp, dword [0x6087a4]
imul eax, dword [0x6087a0]
mov edi, ecx
lea edx, [ecx - 0xff]
mov ecx, dword [esp + 0x78]
add eax, ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x44], edi
mov eax, dword [ecx]
mov ebp, dword [ecx + 0xc]
mov dword [esp + 0x4c], eax
mov eax, dword [ecx + 4]
test eax, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x70], ebp
jne 0x4732f3
mov ebx, dword [esp + 0x50]
shl esi, 4
mov dword [esp + 0x38], esi
lea eax, [ecx + esi + 0x14]
lea ecx, [ecx + esi + 0x1c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], eax
jmp 0x473136
mov edx, dword [esp + 0x14]
cmp edi, edx
jle 0x4731df
mov edx, dword [esp + 0x1c]
mov eax, 0x10
sub edx, eax
mov ecx, esi
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x28]
sub esi, eax
sub edx, eax
test esi, esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x28], edx
jge 0x473182
mov edx, dword [esp + 0x1c]
mov eax, 0x40
add edx, eax
add esi, eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x28]
add edx, eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
mov dword [esp + 0x14], eax
js 0x4731df
mov eax, dword [esp + 0x78]
mov edx, dword [eax + ecx + 0x10]
mov ebx, dword [eax + ecx + 0x1c]
mov dword [esp + 0x20], edx
mov edx, dword [eax + ecx + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], edx
sub ecx, edi
test ecx, ecx
jle 0x4731cb
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
sub eax, ebx
cdq
idiv ecx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x20]
sar eax, 0x10
jns 0x4731df
mov ecx, dword [esp + 0x4c]
imul ecx, eax
sub dword [esp + 0x10], ecx
cmp edi, dword [esp + 0x3c]
jle 0x473235
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 0x473213
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 + 0x3c], eax
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + ecx + 0x10]
mov dword [esp + 0x40], ecx
test edi, edi
jl 0x4732c5
mov eax, dword [esp + 0x20]
mov edx, dword [0x60879c]
sar eax, 0x10
cmp eax, edx
jge 0x4732c5
mov ecx, dword [esp + 0x40]
sar ecx, 0x10
sub ecx, eax
test ecx, ecx
jle 0x4732c5
lea esi, [ecx + eax]
cmp esi, edx
jle 0x473266
mov ecx, edx
sub ecx, eax
test eax, eax
jge 0x473270
add ecx, eax
js 0x4732c1
xor eax, eax
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
lea edi, [edx + eax*2]
mov eax, ebx
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 + 0x48], dl
je 0x4732af
mov edx, dword [esp + 0x48]
and edx, 0xff
mov dx, word [edx*4 + 0x5b0360]
mov word [edi], dx
mov edx, dword [esp + 0x4c]
add edi, 2
add esi, edx
dec ecx
test ecx, ecx
jg 0x473287
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x24]
add ebx, eax
mov eax, dword [0x6087a0]
add ecx, eax
mov eax, dword [esp + 0x5c]
inc edi
mov dword [esp + 0x24], ecx
cmp edi, eax
mov dword [esp + 0x44], edi
jl 0x473132
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
shl esi, 4
add esi, ecx
lea ebx, [ecx + eax + 0x1c]
mov dword [esp + 0x1c], esi
lea esi, [ecx + eax + 0x14]
lea ecx, [ecx + eax + 0x18]
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x38], esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], esi
jmp 0x473338
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x14]
cmp edi, edx
jle 0x473423
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 + 0x30]
sub esi, edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x34]
sub esi, edx
mov dword [esp + 0x34], esi
mov esi, 0x40
test eax, eax
jge 0x4733ac
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 + 0x30]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
add edx, esi
add eax, esi
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], 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 0x473428
mov eax, dword [esp + 0x78]
mov edx, dword [eax + ecx + 0x10]
mov esi, dword [eax + ecx + 0x18]
mov ebx, dword [eax + ecx + 0x1c]
mov ecx, dword [esp + 0x14]
sub ecx, edi
mov dword [esp + 0x20], edx
test ecx, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x50], ebx
jle 0x473423
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
sub eax, edx
mov dword [esp + 0x64], eax
je 0x4733ff
cdq
idiv ecx
mov dword [esp + 0x64], eax
mov edx, dword [esp + 0x30]
mov eax, dword [edx]
sub eax, esi
mov dword [esp + 0x68], eax
je 0x473414
cdq
idiv ecx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
sub eax, ebx
cdq
idiv ecx
mov dword [esp + 0x58], eax
mov esi, 0x40
cmp edi, dword [esp + 0x3c]
jle 0x4734ac
mov eax, dword [esp + 0x18]
mov edx, 0x10
add dword [esp + 0x38], edx
add dword [esp + 0x1c], edx
mov ecx, eax
shl ecx, 4
inc eax
cmp eax, 4
mov dword [esp + 0x18], eax
jl 0x473469
mov edx, dword [esp + 0x38]
sub eax, 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
sub edx, esi
sub eax, esi
mov dword [esp + 0x38], edx
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x38]
mov eax, dword [edx]
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
mov dword [esp + 0x3c], eax
js 0x4734ac
mov eax, dword [esp + 0x78]
mov edx, dword [eax + ecx + 0x10]
mov ecx, dword [esp + 0x3c]
sub ecx, edi
mov dword [esp + 0x40], edx
test ecx, ecx
jle 0x4734ac
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
sub eax, edx
mov dword [esp + 0x6c], eax
je 0x4734ac
cdq
idiv ecx
mov dword [esp + 0x6c], eax
test edi, edi
jl 0x473588
mov eax, dword [esp + 0x20]
mov ecx, dword [0x60879c]
sar eax, 0x10
cmp eax, ecx
jge 0x473588
mov esi, dword [esp + 0x40]
sar esi, 0x10
sub esi, eax
test esi, esi
jle 0x473588
mov ecx, dword [esp + 0x10]
lea edi, [esi + eax]
cmp edi, dword [0x60879c]
mov edx, ebx
jle 0x4734f3
mov esi, dword [0x60879c]
sub esi, eax
test eax, eax
jge 0x473519
add esi, eax
js 0x473584
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x60]
imul edx, eax
imul edi, eax
mov ecx, dword [esp + 0x10]
sub ecx, edx
mov edx, ebx
sub edx, edi
xor eax, eax
mov edi, dword [esp + 0x24]
lea edi, [edi + eax*2]
test edx, edx
jge 0x473535
mov eax, ecx
sar eax, 0x10
and eax, 0x7f
mov al, byte [eax + ebp]
mov byte [esp + 0x48], al
jmp 0x473558
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 + 0x50]
mov byte [esp + 0x48], al
test al, al
je 0x473570
mov eax, dword [esp + 0x48]
and eax, 0xff
mov ax, word [eax*4 + 0x5b0360]
mov word [edi], ax
mov eax, dword [esp + 0x4c]
add edi, 2
add ecx, eax
mov eax, dword [esp + 0x60]
add edx, eax
dec esi
test esi, esi
jg 0x473520
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x68]
mov esi, dword [esp + 0x10]
add eax, ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x6c]
add esi, edx
mov edx, dword [esp + 0x58]
add ecx, eax
mov eax, dword [esp + 0x5c]
add ebx, edx
mov edx, dword [esp + 0x24]
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], ebx
mov dword [esp + 0x44], edi
mov dword [esp + 0x24], edx
jl 0x473330
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret