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

Disassembly:
sub esp, 0xb0
shr edx, 1
push ebx
mov ebx, dword [ecx + 0x10]
mov dword [esp + 0xa8], edx
mov edx, dword [ecx + 0x18]
push ebp
mov ebp, dword [ecx]
push esi
mov dword [esp + 0xb8], edx
mov edx, dword [eax + 4]
cmp edx, dword [eax + 0x24]
lea ecx, [eax + 0x20]
lea esi, [eax + 0x40]
push edi
mov dword [esp + 0x3c], ebx
mov edi, eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x74], esi
jle 0x4e61e6
mov edi, ecx
mov dword [esp + 0x60], eax
mov ecx, eax
mov eax, dword [ecx + 4]
cmp eax, dword [esi + 4]
jle 0x4e61fc
mov dword [esp + 0x74], ecx
mov dword [esp + 0x60], esi
mov ecx, esi
mov esi, dword [esp + 0x74]
mov edx, dword [edi + 4]
cmp edx, dword [ecx + 4]
jle 0x4e620e
mov eax, edi
mov edi, ecx
mov dword [esp + 0x60], eax
mov ecx, eax
mov eax, dword [edi + 4]
lea edx, [eax + 0xffff]
mov eax, dword [esi + 4]
lea esi, [eax + 0xffff]
sar edx, 0x10
sar esi, 0x10
cmp edx, esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x38], esi
je 0x4e76b0
mov ecx, dword [ecx + 4]
mov dword [esp + 0x20], ecx
add ecx, 0xffff
sar ecx, 0x10
mov dword [esp + 0x5c], ecx
mov ecx, dword [edi + 4]
sub eax, ecx
cdq
push edx
push eax
push 0x10000
push 0
call fcn.0062e060
mov esi, eax
mov eax, dword [esp + 0x74]
mov eax, dword [eax]
mov ecx, edx
mov edx, dword [edi]
push ecx
sub eax, edx
mov dword [esp + 0x30], edx
cdq
push esi
push edx
push eax
mov dword [esp + 0xac], ecx
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov ecx, dword [esp + 0x74]
mov dword [esp + 0xac], eax
mov eax, dword [ecx + 0x18]
sub eax, dword [edi + 0x18]
mov ecx, dword [esp + 0x9c]
push ecx
cdq
push esi
push edx
push eax
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0xb0], eax
mov eax, dword [edx + 0x1c]
sub eax, dword [edi + 0x1c]
push ecx
cdq
push esi
push edx
push eax
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x20]
sub eax, dword [edi + 4]
cdq
mov ecx, eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x54], edx
cdq
mov esi, eax
mov eax, dword [esp + 0x54]
push eax
push ecx
push edx
push esi
mov dword [esp + 0x60], ecx
mov dword [esp + 0xac], edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x60]
mov ecx, dword [ecx]
cmp ecx, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x14], ecx
je 0x4e76b0
mov eax, dword [esp + 0x1c]
shl eax, 0x10
sub eax, dword [edi + 4]
cdq
push edx
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0xa0]
push eax
push edx
push esi
mov dword [esp + 0x78], eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x6c]
mov esi, eax
mov eax, dword [esp + 0xb0]
add esi, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x6c]
cdq
push ecx
push edx
push eax
mov dword [esp + 0x94], esi
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x6c]
mov edi, dword [edi + 0x1c]
push ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xbc]
cdq
push ecx
push edx
push eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], edx
mov dword [esp + 0x40], edi
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, edi
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x64]
cdq
push edx
push eax
push 0x10000
push 0
call fcn.0062e060
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0xa4]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x54]
push eax
push ecx
push edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov edi, edx
mov edx, dword [esp + 0x60]
mov ecx, eax
mov eax, dword [edx + 0x18]
cdq
sub eax, ecx
mov ecx, eax
mov eax, dword [esp + 0x24]
sbb edx, edi
mov edi, edx
cdq
sub ecx, eax
mov eax, dword [esp + 0x88]
sbb edi, edx
mov edx, dword [esp + 0x8c]
push edx
push eax
push edi
push ecx
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x80]
push edx
push eax
push ecx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov edi, edx
mov edx, dword [esp + 0x60]
mov ecx, eax
mov eax, dword [edx + 0x1c]
cdq
sub eax, ecx
sbb edx, edi
mov ecx, eax
mov eax, dword [esp + 0x30]
mov edi, edx
cdq
sub ecx, eax
mov eax, dword [esp + 0x88]
sbb edi, edx
mov edx, dword [esp + 0x8c]
push edx
push eax
push edi
push ecx
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov ecx, dword [esp + 0x1c]
mov edx, ecx
imul edx, dword [esp + 0xb4]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xc4]
lea edx, [eax + edx*2]
mov eax, dword [esp + 0x5c]
sub eax, ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x28], eax
je 0x4e6dc2
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x50]
cdq
mov edi, eax
mov eax, dword [esp + 0x54]
push eax
push ecx
push 0x10000
push 0
mov ebx, edx
call fcn.0062e060
push edx
push eax
push ebx
push edi
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov ecx, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x24], eax
cdq
push ecx
push edx
push eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov edx, dword [esp + 0x60]
mov ebx, dword [esp + 0x3c]
mov ecx, eax
mov eax, dword [edx]
mov edx, dword [esp + 0x64]
add ecx, dword [esp + 0x2c]
cmp edx, eax
jge 0x4e6994
cmp dword [esp + 0x28], 0
jle 0x4e6dc2
mov eax, dword [esp + 0x90]
cdq
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x6c], edx
cdq
mov dword [esp + 0x50], eax
add ecx, 0xffff
lea eax, [esi + 0xffff]
mov dword [esp + 0x54], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], eax
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x6c]
sub dword [esp + 0x28], 1
and edi, 0xffff0000
mov eax, edi
sub eax, esi
cdq
push edx
push eax
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x70]
push ecx
push edx
mov dword [esp + 0x98], eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x8c]
push eax
mov eax, dword [esp + 0x54]
push ecx
push edx
push eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov edx, dword [esp + 0x48]
add eax, dword [esp + 0x4c]
mov ecx, edi
sar ecx, 0x10
lea ecx, [edx + ecx*2]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x24]
and ecx, 0xffff0000
sub ecx, edi
sar ecx, 0x10
test ecx, ecx
jle 0x4e6945
mov esi, dword [esp + 0x10]
lea edx, [eax - 0x8000]
add esi, 0xffff8000
mov dword [esp + 0x30], edx
mov dword [esp + 0x78], esi
jmp 0x4e6660
sub ecx, 1
test esi, esi
mov dword [esp + 0xa0], ecx
jle 0x4e6693
and esi, 0xffff0000
mov eax, esi
mov dword [esp + 0x10], edx
xor edx, edx
sar eax, 0x10
lea ecx, [ebx - 1]
cmp eax, ecx
setl dl
mov edi, edx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x10]
jmp 0x4e669b
xor esi, esi
xor edi, edi
mov dword [esp + 0x14], edi
test edx, edx
jle 0x4e66d2
mov ecx, dword [esp + 0xbc]
mov edi, dword [esp + 0x14]
and edx, 0xffff0000
mov eax, edx
mov dword [esp + 0x10], edx
xor edx, edx
sar eax, 0x10
add ecx, 0xffffffff
cmp eax, ecx
setge dl
sub edx, 1
and edx, ebx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x10]
jmp 0x4e66d8
xor edx, edx
mov dword [esp + 0x18], edx
mov ecx, edx
sar ecx, 0x10
imul ecx, ebx
mov eax, esi
sar eax, 0x10
add ecx, eax
mov ebx, dword [ebp + ecx*4]
lea eax, [ecx + edi]
mov eax, dword [ebp + eax*4]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x18]
add ecx, eax
mov eax, dword [ebp + ecx*4]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
sub eax, edx
add edi, ecx
mov ecx, dword [ebp + edi*4]
mov edi, dword [esp + 0x78]
sub edi, esi
and eax, 0xfffe
add eax, 1
and edi, 0xfffe
add edi, 1
mov dword [esp + 0x18], edi
mov edx, 0x10000
sub edx, eax
mov esi, 0x10000
sub esi, edi
imul edi, edx
mov dword [esp + 0x10], esi
imul esi, edx
mov edx, dword [esp + 0x40]
shr edx, 0x18
mov dword [esp + 0x14], ebx
shr edi, 0x10
imul edi, edx
mov edx, eax
imul eax, dword [esp + 0x18]
imul edx, dword [esp + 0x10]
shr ebx, 0x18
shr edx, 0x10
shr esi, 0x10
imul esi, ebx
mov ebx, dword [esp + 0x2c]
shr ebx, 0x18
imul edx, ebx
shr eax, 0x10
mov ebx, ecx
shr ebx, 0x18
imul eax, ebx
shr eax, 0x10
mov ebx, eax
shr edx, 0x10
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], edx
mov eax, ecx
and eax, 0xff0000
imul eax, ebx
mov ebx, dword [esp + 0x2c]
and ebx, 0xff0000
imul ebx, edx
mov edx, dword [esp + 0x40]
and edx, 0xff0000
shr edi, 0x10
imul edx, edi
add eax, ebx
movzx ebx, byte [esp + 0x2c]
imul ebx, dword [esp + 0x10]
add eax, edx
mov edx, dword [esp + 0x14]
and edx, 0xff0000
shr esi, 0x10
imul edx, esi
add eax, edx
movzx edx, cl
imul edx, dword [esp + 0x18]
add edx, ebx
movzx ebx, byte [esp + 0x40]
and eax, 0xff0000ff
imul ebx, edi
add edx, ebx
movzx ebx, byte [esp + 0x14]
imul ebx, esi
add edx, ebx
mov ebx, dword [esp + 0x10]
and edx, 0xff00
or eax, edx
mov edx, dword [esp + 0x2c]
and ecx, 0xff00
imul ecx, dword [esp + 0x18]
and edx, 0xff00
imul edx, ebx
add ecx, edx
mov edx, dword [esp + 0x40]
and edx, 0xff00
imul edx, edi
add ecx, edx
mov edx, dword [esp + 0x14]
and edx, 0xff00
imul edx, esi
add ecx, edx
and ecx, 0xff0000
or eax, ecx
mov ecx, dword [esp + 0x18]
add ecx, ebx
add ecx, edi
add ecx, esi
shl ecx, 0x18
shr eax, 8
and ecx, 0xff000000
or eax, ecx
mov edx, eax
and edx, 0xff000000
cmp edx, 0x8000000
jbe 0x4e6908
mov esi, dword [esp + 0x34]
movzx edx, word [esi]
mov ecx, edx
and ecx, 0xf800
mov edi, edx
shl ecx, 5
and edi, 0x1f
or ecx, edi
mov edi, eax
add ecx, ecx
and eax, 0xff00
add ecx, ecx
and edx, 0x7e0
add ecx, ecx
or edx, 0x18
and edi, 0xff00ff
or ecx, 0x70007
add ecx, edi
shl edx, 5
add edx, eax
mov eax, ecx
shr eax, 0x18
and eax, 1
imul eax, eax, 0xff0000
mov edi, ecx
shr edi, 8
and edi, 1
imul edi, edi, 0xff
or eax, edi
or ecx, eax
mov eax, edx
shr eax, 0x10
and eax, 1
imul eax, eax, 0xff00
shr edx, 5
shr eax, 5
or eax, edx
mov edx, ecx
shr edx, 3
and eax, 0x7e0
and edx, 0x1f
shr ecx, 8
or eax, edx
and ecx, 0xf800
or eax, ecx
mov word [esi], ax
mov esi, dword [esp + 0x78]
mov edx, dword [esp + 0x30]
add esi, dword [esp + 0x90]
add edx, dword [esp + 0x94]
mov ecx, dword [esp + 0xa0]
add dword [esp + 0x34], 2
test ecx, ecx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x78], esi
mov dword [esp + 0x30], edx
jg 0x4e6660
mov esi, dword [esp + 0x84]
mov eax, dword [esp + 0xac]
add dword [esp + 0x1c], eax
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xb8]
add dword [esp + 0x44], ecx
add dword [esp + 0x4c], edx
add esi, eax
mov eax, dword [esp + 0x20]
add dword [esp + 0x24], eax
mov eax, dword [esp + 0xb4]
add eax, eax
add dword [esp + 0x48], eax
cmp dword [esp + 0x28], 0
mov dword [esp + 0x84], esi
jg 0x4e65aa
jmp 0x4e6dc2
jle 0x4e6dc2
cmp dword [esp + 0x28], 0
jle 0x4e6dc2
mov eax, dword [esp + 0x90]
cdq
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x6c], edx
cdq
mov dword [esp + 0x50], eax
lea eax, [esi + 0xffff]
add ecx, 0xffff
mov dword [esp + 0x54], edx
mov dword [esp + 0x78], eax
mov dword [esp + 0x34], ecx
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x6c]
sub dword [esp + 0x28], 1
and edi, 0xffff0000
mov eax, edi
sub eax, esi
cdq
push edx
push eax
mov dword [esp + 0xa4], edx
mov edx, dword [esp + 0x70]
push ecx
push edx
mov dword [esp + 0xa8], eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x54]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x9c]
push eax
mov eax, dword [esp + 0x54]
push ecx
push edx
push eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov edx, dword [esp + 0x48]
add eax, dword [esp + 0x4c]
mov ecx, edi
sar ecx, 0x10
lea ecx, [edx + ecx*2]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x78]
and ecx, 0xffff0000
sub ecx, edi
sar ecx, 0x10
test ecx, ecx
jle 0x4e6d78
lea edi, [eax - 0x8000]
mov eax, dword [esp + 0xa0]
add eax, 0xffff8000
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
jmp 0x4e6a98
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
sub ecx, 1
test eax, eax
mov dword [esp + 0x88], ecx
jle 0x4e6ad0
and eax, 0xffff0000
mov edx, eax
mov dword [esp + 0xa0], eax
xor eax, eax
sar edx, 0x10
lea ecx, [ebx - 1]
cmp edx, ecx
setl al
mov edx, eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xa0]
jmp 0x4e6ad8
xor eax, eax
xor edx, edx
mov dword [esp + 0x10], edx
test edi, edi
jle 0x4e6b15
mov ecx, dword [esp + 0xbc]
and edi, 0xffff0000
mov dword [esp + 0xa0], eax
xor eax, eax
mov edx, edi
sar edx, 0x10
add ecx, 0xffffffff
cmp edx, ecx
mov edx, dword [esp + 0x10]
setge al
sub eax, 1
and eax, ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xa0]
jmp 0x4e6b1b
xor edi, edi
mov dword [esp + 0x1c], edi
mov ecx, edi
sar ecx, 0x10
imul ecx, ebx
mov esi, eax
sar esi, 0x10
add ecx, esi
mov esi, dword [ebp + ecx*4]
lea ebx, [ecx + edx]
mov ebx, dword [ebp + ebx*4]
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x1c]
add ecx, ebx
mov ebx, dword [ebp + ecx*4]
add ecx, edx
mov edx, dword [ebp + ecx*4]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x18]
sub edx, eax
mov eax, dword [esp + 0x14]
sub eax, edi
and eax, 0xfffe
add eax, 1
and edx, 0xfffe
add edx, 1
mov ebx, 0x10000
sub ebx, edx
mov ecx, ebx
mov edi, 0x10000
sub edi, eax
imul ecx, edi
mov dword [esp + 0x24], esi
shr esi, 0x18
shr ecx, 0x10
imul ecx, esi
mov esi, edx
imul esi, edi
mov edi, dword [esp + 0x2c]
shr edi, 0x18
shr esi, 0x10
imul esi, edi
mov edi, eax
imul eax, edx
mov edx, dword [esp + 0x10]
imul edi, ebx
mov ebx, dword [esp + 0x40]
shr ebx, 0x18
shr eax, 0x10
shr edi, 0x10
imul edi, ebx
mov ebx, edx
shr ebx, 0x18
imul eax, ebx
shr eax, 0x10
mov ebx, eax
mov dword [esp + 0x1c], ebx
mov eax, edx
and eax, 0xff00
imul eax, ebx
mov ebx, dword [esp + 0x40]
and ebx, 0xff00
shr edi, 0x10
imul ebx, edi
add eax, ebx
mov ebx, dword [esp + 0x2c]
and ebx, 0xff00
shr esi, 0x10
imul ebx, esi
add eax, ebx
mov ebx, dword [esp + 0x24]
and ebx, 0xff00
shr ecx, 0x10
imul ebx, ecx
add eax, ebx
mov ebx, dword [esp + 0x40]
and edx, 0xff0000
imul edx, dword [esp + 0x1c]
and ebx, 0xff0000
imul ebx, edi
and eax, 0xff0000
add edx, ebx
mov ebx, dword [esp + 0x2c]
and ebx, 0xff0000
imul ebx, esi
add edx, ebx
mov ebx, dword [esp + 0x24]
and ebx, 0xff0000
imul ebx, ecx
add edx, ebx
movzx ebx, byte [esp + 0x40]
and edx, 0xff0000ff
imul ebx, edi
or eax, edx
movzx edx, byte [esp + 0x10]
imul edx, dword [esp + 0x1c]
add edx, ebx
movzx ebx, byte [esp + 0x2c]
imul ebx, esi
add edx, ebx
movzx ebx, byte [esp + 0x24]
imul ebx, ecx
add edx, ebx
and edx, 0xff00
or eax, edx
mov edx, dword [esp + 0x1c]
add edx, edi
add edx, esi
add edx, ecx
shl edx, 0x18
shr eax, 8
and edx, 0xff000000
or eax, edx
mov ecx, eax
and ecx, 0xff000000
cmp ecx, 0x8000000
jbe 0x4e6d43
mov esi, dword [esp + 0x30]
movzx edx, word [esi]
mov ecx, edx
and ecx, 0xf800
mov edi, edx
shl ecx, 5
and edi, 0x1f
or ecx, edi
mov edi, eax
add ecx, ecx
and eax, 0xff00
add ecx, ecx
and edx, 0x7e0
add ecx, ecx
or edx, 0x18
and edi, 0xff00ff
or ecx, 0x70007
add ecx, edi
shl edx, 5
add edx, eax
mov eax, ecx
shr eax, 0x18
and eax, 1
imul eax, eax, 0xff0000
mov edi, ecx
shr edi, 8
and edi, 1
imul edi, edi, 0xff
or eax, edi
or ecx, eax
mov eax, edx
shr eax, 0x10
and eax, 1
imul eax, eax, 0xff00
shr edx, 5
shr eax, 5
or eax, edx
mov edx, ecx
shr edx, 3
and eax, 0x7e0
and edx, 0x1f
shr ecx, 8
or eax, edx
and ecx, 0xf800
or eax, ecx
mov word [esi], ax
mov ecx, dword [esp + 0x94]
add dword [esp + 0x14], ecx
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x88]
add dword [esp + 0x30], 2
add dword [esp + 0x18], eax
test ecx, ecx
mov ebx, dword [esp + 0x3c]
jg 0x4e6a90
mov esi, dword [esp + 0x84]
mov eax, dword [esp + 0xac]
add dword [esp + 0x78], eax
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0xb8]
add dword [esp + 0x34], edx
add dword [esp + 0x4c], ecx
add esi, eax
mov eax, dword [esp + 0xb4]
add eax, eax
add dword [esp + 0x48], eax
mov eax, dword [esp + 0xb0]
add dword [esp + 0x44], eax
cmp dword [esp + 0x28], 0
mov dword [esp + 0x84], esi
jg 0x4e69d9
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x5c]
mov dword [esp + 0x28], eax
je 0x4e76b0
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 4]
mov edi, dword [eax]
mov edx, dword [esp + 0x74]
mov eax, dword [edx + 4]
sub eax, ecx
cdq
push edx
push eax
push 0x10000
push 0
mov dword [esp + 0x98], ecx
mov dword [esp + 0x24], edi
call fcn.0062e060
mov ecx, eax
mov eax, edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x38], eax
mov eax, dword [edx]
sub eax, edi
cdq
push edx
push eax
mov eax, dword [esp + 0x40]
push eax
push ecx
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov ecx, eax
mov eax, dword [esp + 0x5c]
shl eax, 0x10
sub eax, dword [esp + 0x88]
mov dword [esp + 0x74], ecx
imul ecx
mov cl, 0x10
call fcn.00639880
mov edx, dword [esp + 0x64]
mov ecx, eax
mov eax, edi
add ecx, eax
cmp edx, eax
jge 0x4e727b
cmp dword [esp + 0x28], 0
jle 0x4e76b0
mov eax, dword [esp + 0x90]
cdq
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x6c], edx
cdq
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x54], edx
lea edx, [eax + eax]
add ecx, 0xffff
lea eax, [esi + 0xffff]
mov dword [esp + 0x40], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x78], eax
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x6c]
sub dword [esp + 0x28], 1
and edi, 0xffff0000
mov eax, edi
sub eax, esi
cdq
push edx
push eax
mov dword [esp + 0xa4], edx
mov edx, dword [esp + 0x70]
push ecx
push edx
mov dword [esp + 0xa8], eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x9c]
push eax
mov eax, dword [esp + 0x54]
push ecx
push edx
push eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov edx, dword [esp + 0x48]
add eax, dword [esp + 0x4c]
mov ecx, edi
sar ecx, 0x10
lea ecx, [edx + ecx*2]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x34]
and ecx, 0xffff0000
sub ecx, edi
sar ecx, 0x10
test ecx, ecx
jle 0x4e722b
mov esi, dword [esp + 0x38]
add eax, 0xffff8000
add esi, 0xffff8000
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], esi
jmp 0x4e6f50
sub ecx, 1
test esi, esi
mov dword [esp + 0x88], ecx
jle 0x4e6f83
and esi, 0xffff0000
mov edx, esi
mov dword [esp + 0x38], eax
xor eax, eax
sar edx, 0x10
lea ecx, [ebx - 1]
cmp edx, ecx
setl al
mov edx, eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
jmp 0x4e6f8b
xor esi, esi
xor edx, edx
mov dword [esp + 0x20], edx
xor ecx, ecx
cmp eax, ecx
jle 0x4e6fc6
mov ecx, eax
mov eax, dword [esp + 0xbc]
and ecx, 0xffff0000
mov edx, ecx
mov dword [esp + 0x38], ecx
sar edx, 0x10
xor ecx, ecx
add eax, 0xffffffff
cmp edx, eax
mov edx, dword [esp + 0x20]
setge cl
sub ecx, 1
and ecx, ebx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x38]
jmp 0x4e6fca
mov dword [esp + 0x10], ecx
mov eax, ecx
sar eax, 0x10
imul eax, ebx
mov edi, esi
sar edi, 0x10
add eax, edi
mov ebx, dword [ebp + eax*4]
lea edi, [eax + edx]
mov edi, dword [ebp + edi*4]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x10]
add eax, edi
mov edi, dword [ebp + eax*4]
add eax, edx
mov edx, dword [ebp + eax*4]
mov eax, dword [esp + 0x30]
sub eax, ecx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x1c]
sub edx, esi
and eax, 0xfffe
add eax, 1
mov dword [esp + 0x14], edi
and edx, 0xfffe
add edx, 1
mov dword [esp + 0x64], ebx
shr ebx, 0x18
mov edi, 0x10000
sub edi, edx
mov ecx, edi
imul edi, eax
mov esi, 0x10000
sub esi, eax
imul eax, edx
imul ecx, esi
imul esi, edx
mov edx, dword [esp + 0x20]
shr ecx, 0x10
imul ecx, ebx
mov ebx, dword [esp + 0x18]
shr ebx, 0x18
shr esi, 0x10
imul esi, ebx
mov ebx, dword [esp + 0x14]
shr ebx, 0x18
shr eax, 0x10
shr edi, 0x10
imul edi, ebx
mov ebx, edx
shr ebx, 0x18
imul eax, ebx
shr eax, 0x10
mov ebx, eax
mov dword [esp + 0x5c], ebx
mov eax, edx
and eax, 0xff00
imul eax, ebx
mov ebx, dword [esp + 0x14]
and ebx, 0xff00
shr edi, 0x10
imul ebx, edi
add eax, ebx
mov ebx, dword [esp + 0x18]
and ebx, 0xff00
shr esi, 0x10
imul ebx, esi
add eax, ebx
mov ebx, dword [esp + 0x64]
and ebx, 0xff00
shr ecx, 0x10
imul ebx, ecx
add eax, ebx
mov ebx, dword [esp + 0x14]
and edx, 0xff0000
imul edx, dword [esp + 0x5c]
and ebx, 0xff0000
imul ebx, edi
add edx, ebx
mov ebx, dword [esp + 0x18]
and eax, 0xff0000
and ebx, 0xff0000
imul ebx, esi
add edx, ebx
mov ebx, dword [esp + 0x64]
and ebx, 0xff0000
imul ebx, ecx
add edx, ebx
movzx ebx, byte [esp + 0x14]
and edx, 0xff0000ff
imul ebx, edi
or eax, edx
movzx edx, byte [esp + 0x20]
imul edx, dword [esp + 0x5c]
add edx, ebx
movzx ebx, byte [esp + 0x18]
imul ebx, esi
add edx, ebx
movzx ebx, byte [esp + 0x64]
imul ebx, ecx
add edx, ebx
and edx, 0xff00
or eax, edx
mov edx, dword [esp + 0x5c]
add edx, edi
add edx, esi
add edx, ecx
shl edx, 0x18
shr eax, 8
and edx, 0xff000000
or eax, edx
mov ecx, eax
and ecx, 0xff000000
cmp ecx, 0x8000000
jbe 0x4e71ee
mov esi, dword [esp + 0x24]
movzx edx, word [esi]
mov ecx, edx
and ecx, 0xf800
mov edi, edx
shl ecx, 5
and edi, 0x1f
or ecx, edi
mov edi, eax
add ecx, ecx
and eax, 0xff00
add ecx, ecx
and edx, 0x7e0
add ecx, ecx
or edx, 0x18
and edi, 0xff00ff
or ecx, 0x70007
add ecx, edi
shl edx, 5
add edx, eax
mov eax, ecx
shr eax, 0x18
and eax, 1
imul eax, eax, 0xff0000
mov edi, ecx
shr edi, 8
and edi, 1
imul edi, edi, 0xff
or eax, edi
or ecx, eax
mov eax, edx
shr eax, 0x10
and eax, 1
imul eax, eax, 0xff00
shr edx, 5
shr eax, 5
or eax, edx
mov edx, ecx
shr edx, 3
and eax, 0x7e0
and edx, 0x1f
shr ecx, 8
or eax, edx
and ecx, 0xf800
or eax, ecx
mov word [esi], ax
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
add esi, dword [esp + 0x90]
add eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x88]
add dword [esp + 0x24], 2
test ecx, ecx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x30], eax
jg 0x4e6f50
mov esi, dword [esp + 0x84]
mov eax, dword [esp + 0xac]
add dword [esp + 0x78], eax
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0xb0]
add dword [esp + 0x48], ecx
add dword [esp + 0x44], edx
add esi, eax
mov eax, dword [esp + 0x74]
add dword [esp + 0x34], eax
mov eax, dword [esp + 0xb8]
add dword [esp + 0x4c], eax
cmp dword [esp + 0x28], 0
mov dword [esp + 0x84], esi
jg 0x4e6ea1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret
jle 0x4e76b0
cmp dword [esp + 0x28], 0
jle 0x4e76b0
mov eax, dword [esp + 0x90]
cdq
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x6c], edx
cdq
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0xb4]
mov dword [esp + 0x50], eax
lea eax, [edx + edx]
lea edx, [esi + 0xffff]
add ecx, 0xffff
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x18], ecx
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x68]
sub dword [esp + 0x28], 1
and edi, 0xffff0000
mov eax, edi
sub eax, esi
cdq
push edx
push eax
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x74]
push eax
push ecx
mov dword [esp + 0xac], edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x44]
mov edx, dword [esp + 0x9c]
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x9c]
push eax
push ecx
push edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov edx, dword [esp + 0x48]
add eax, dword [esp + 0x4c]
mov ecx, edi
sar ecx, 0x10
lea ecx, [edx + ecx*2]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x34]
and ecx, 0xffff0000
sub ecx, edi
sar ecx, 0x10
test ecx, ecx
jle 0x4e766b
mov edi, dword [esp + 0x38]
lea edx, [eax - 0x8000]
add edi, 0xffff8000
mov dword [esp + 0x78], edx
mov dword [esp + 0x30], edi
lea esp, [esp]
sub ecx, 1
test edi, edi
mov dword [esp + 0x88], ecx
jle 0x4e73b3
and edi, 0xffff0000
mov eax, edi
mov dword [esp + 0x38], edx
xor edx, edx
sar eax, 0x10
lea ecx, [ebx - 1]
cmp eax, ecx
setl dl
mov esi, edx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x38]
jmp 0x4e73bb
xor edi, edi
xor esi, esi
mov dword [esp + 0x20], esi
test edx, edx
jle 0x4e73f2
mov ecx, dword [esp + 0xbc]
mov esi, dword [esp + 0x20]
and edx, 0xffff0000
mov eax, edx
mov dword [esp + 0x38], edx
xor edx, edx
sar eax, 0x10
add ecx, 0xffffffff
cmp eax, ecx
setge dl
sub edx, 1
and edx, ebx
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x38]
jmp 0x4e73f8
xor edx, edx
mov dword [esp + 0x10], edx
mov ecx, edx
sar ecx, 0x10
imul ecx, ebx
mov eax, edi
sar eax, 0x10
add ecx, eax
mov ebx, dword [ebp + ecx*4]
lea eax, [ecx + esi]
mov eax, dword [ebp + eax*4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
add ecx, eax
mov eax, dword [ebp + ecx*4]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x78]
sub eax, edx
add ecx, esi
mov esi, dword [esp + 0x30]
sub esi, edi
and eax, 0xfffe
add eax, 1
and esi, 0xfffe
add esi, 1
mov dword [esp + 0x20], esi
mov edi, 0x10000
sub edi, esi
mov esi, edi
imul edi, eax
mov edx, 0x10000
sub edx, eax
imul eax, dword [esp + 0x20]
imul esi, edx
imul edx, dword [esp + 0x20]
shr edx, 0x10
mov ecx, dword [ebp + ecx*4]
mov dword [esp + 0x2c], ebx
shr ebx, 0x18
shr esi, 0x10
imul esi, ebx
mov ebx, dword [esp + 0x14]
shr ebx, 0x18
imul edx, ebx
mov ebx, dword [esp + 0x10]
shr edx, 0x10
mov dword [esp + 0x64], edx
shr edi, 0x10
shr eax, 0x10
mov edx, ebx
shr edx, 0x18
imul edi, edx
mov edx, ecx
shr edx, 0x18
imul eax, edx
shr eax, 0x10
mov edx, eax
mov dword [esp + 0x5c], edx
mov eax, ecx
and eax, 0xff0000
imul eax, edx
shr edi, 0x10
mov edx, ebx
and edx, 0xff0000
imul edx, edi
add eax, edx
mov edx, dword [esp + 0x14]
and edx, 0xff0000
imul edx, dword [esp + 0x64]
add eax, edx
mov edx, dword [esp + 0x2c]
and edx, 0xff0000
shr esi, 0x10
imul edx, esi
add eax, edx
mov dword [esp + 0x24], edi
movzx edi, cl
imul edi, dword [esp + 0x5c]
movzx edx, bl
imul edx, dword [esp + 0x24]
and eax, 0xff0000ff
add edi, edx
movzx edx, byte [esp + 0x14]
imul edx, dword [esp + 0x64]
add edi, edx
mov edx, dword [esp + 0x2c]
movzx ebx, dl
imul ebx, esi
add edi, ebx
mov ebx, dword [esp + 0x64]
and ecx, 0xff00
imul ecx, dword [esp + 0x5c]
and edi, 0xff00
or eax, edi
mov edi, dword [esp + 0x10]
and edi, 0xff00
imul edi, dword [esp + 0x24]
add ecx, edi
mov edi, dword [esp + 0x14]
and edi, 0xff00
and edx, 0xff00
imul edi, ebx
imul edx, esi
add ecx, edi
add ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 0xff0000
or eax, ecx
mov ecx, dword [esp + 0x5c]
add ecx, edx
add ecx, ebx
add ecx, esi
shl ecx, 0x18
and ecx, 0xff000000
shr eax, 8
or eax, ecx
mov ecx, eax
and ecx, 0xff000000
cmp ecx, 0x8000000
jbe 0x4e762e
mov esi, dword [esp + 0x1c]
movzx edx, word [esi]
mov ecx, edx
and ecx, 0xf800
mov edi, edx
shl ecx, 5
and edi, 0x1f
or ecx, edi
mov edi, eax
add ecx, ecx
and eax, 0xff00
add ecx, ecx
and edx, 0x7e0
add ecx, ecx
or edx, 0x18
and edi, 0xff00ff
or ecx, 0x70007
add ecx, edi
shl edx, 5
add edx, eax
mov eax, ecx
shr eax, 0x18
and eax, 1
imul eax, eax, 0xff0000
mov edi, ecx
shr edi, 8
and edi, 1
imul edi, edi, 0xff
or eax, edi
or ecx, eax
mov eax, edx
shr eax, 0x10
and eax, 1
imul eax, eax, 0xff00
shr edx, 5
shr eax, 5
or eax, edx
mov edx, ecx
shr edx, 3
and eax, 0x7e0
and edx, 0x1f
shr ecx, 8
or eax, edx
and ecx, 0xf800
or eax, ecx
mov word [esi], ax
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x78]
add edi, dword [esp + 0x90]
add edx, dword [esp + 0x94]
mov ecx, dword [esp + 0x88]
add dword [esp + 0x1c], 2
test ecx, ecx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x78], edx
jg 0x4e7380
mov esi, dword [esp + 0x84]
mov eax, dword [esp + 0xac]
add dword [esp + 0x34], eax
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0xb0]
add dword [esp + 0x48], ecx
add dword [esp + 0x44], edx
add esi, eax
mov eax, dword [esp + 0x74]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0xb8]
add dword [esp + 0x4c], eax
cmp dword [esp + 0x28], 0
mov dword [esp + 0x84], esi
jg 0x4e72ce
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret