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

Disassembly:
sub esp, 0xac
push ebx
mov ebx, dword [ecx + 0x10]
shr edx, 2
push ebp
push esi
mov dword [esp + 0xa0], edx
mov edx, dword [ecx + 0x18]
push edi
mov edi, dword [ecx]
mov dword [esp + 0xb8], edx
mov edx, dword [eax + 4]
cmp edx, dword [eax + 0x24]
lea ecx, [eax + 0x20]
lea esi, [eax + 0x40]
mov dword [esp + 0x40], ebx
mov ebp, eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x9c], esi
jle 0x4bf75a
mov ebp, ecx
mov dword [esp + 0x68], eax
mov ecx, eax
mov eax, dword [ecx + 4]
cmp eax, dword [esi + 4]
jle 0x4bf776
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x68], esi
mov ecx, esi
mov esi, dword [esp + 0x9c]
mov edx, dword [ebp + 4]
cmp edx, dword [ecx + 4]
jle 0x4bf788
mov eax, ebp
mov ebp, ecx
mov dword [esp + 0x68], eax
mov ecx, eax
mov eax, dword [ebp + 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 + 0x24], edx
mov dword [esp + 0x3c], esi
je 0x4c0d4f
mov ecx, dword [ecx + 4]
mov dword [esp + 0x18], ecx
add ecx, 0xffff
sar ecx, 0x10
mov dword [esp + 0x60], ecx
mov ecx, dword [ebp + 4]
sub eax, ecx
cdq
push edx
push eax
push 0x10000
push 0
call fcn.0062e060
mov esi, eax
mov eax, dword [esp + 0x9c]
mov eax, dword [eax]
mov ecx, edx
mov edx, dword [ebp]
push ecx
sub eax, edx
mov dword [esp + 0x34], edx
cdq
push esi
push edx
push eax
mov dword [esp + 0xa8], ecx
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0xb4], eax
mov eax, dword [ecx + 0x18]
sub eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x98]
push ecx
cdq
push esi
push edx
push eax
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov edx, dword [esp + 0x9c]
mov ecx, dword [esp + 0x98]
mov dword [esp + 0xa8], eax
mov eax, dword [edx + 0x1c]
sub eax, dword [ebp + 0x1c]
push ecx
cdq
push esi
push edx
push eax
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x18]
sub eax, dword [ebp + 4]
cdq
mov ecx, eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x58], edx
cdq
push edx
mov esi, eax
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x5c]
push esi
push edx
push ecx
mov dword [esp + 0x64], ecx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x68]
mov ecx, dword [ecx]
cmp ecx, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x14], ecx
je 0x4c0d4f
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x98]
shl eax, 0x10
sub eax, dword [ebp + 4]
push ecx
cdq
push esi
push edx
push eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x70]
mov esi, eax
mov eax, dword [esp + 0xa8]
add esi, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x70]
cdq
push ecx
push edx
push eax
mov dword [esp + 0xa0], esi
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x70]
mov ebp, dword [ebp + 0x1c]
push ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0xa4]
cdq
push ecx
push edx
push eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], edx
mov dword [esp + 0x54], ebp
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, ebp
mov dword [esp + 0x50], 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 + 0xb0]
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0xb0]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x58]
push eax
push ecx
push edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ebp, edx
mov edx, dword [esp + 0x68]
mov ecx, eax
mov eax, dword [edx + 0x18]
cdq
sub eax, ecx
mov ecx, eax
mov eax, dword [esp + 0x20]
sbb edx, ebp
mov ebp, edx
cdq
sub ecx, eax
mov eax, dword [esp + 0x84]
sbb ebp, edx
mov edx, dword [esp + 0x88]
push edx
push eax
push ebp
push ecx
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x7c]
push edx
push eax
push ecx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ebp, edx
mov edx, dword [esp + 0x68]
mov ecx, eax
mov eax, dword [edx + 0x1c]
cdq
sub eax, ecx
sbb edx, ebp
mov ecx, eax
mov eax, dword [esp + 0x44]
mov ebp, edx
cdq
sub ecx, eax
mov eax, dword [esp + 0x84]
sbb ebp, edx
mov edx, dword [esp + 0x88]
push edx
push eax
push ebp
push ecx
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov ecx, dword [esp + 0x24]
mov edx, ecx
imul edx, dword [esp + 0xa4]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xc0]
lea edx, [eax + edx*4]
mov eax, dword [esp + 0x60]
sub eax, ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x2c], eax
je 0x4c03c2
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x54]
cdq
mov ebx, eax
mov eax, dword [esp + 0x58]
push eax
push ecx
push 0x10000
push 0
mov ebp, edx
call fcn.0062e060
push edx
push eax
push ebp
push ebx
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov ecx, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x1c], eax
cdq
push ecx
push edx
push eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x40]
mov ecx, eax
mov eax, dword [edx]
mov edx, dword [esp + 0x64]
add ecx, dword [esp + 0x30]
cmp edx, eax
jge 0x4bff5b
cmp dword [esp + 0x2c], 0
jle 0x4c03c2
mov eax, dword [esp + 0x8c]
cdq
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x70], edx
cdq
mov dword [esp + 0x54], eax
add ecx, 0xffff
lea eax, [esi + 0xffff]
mov dword [esp + 0x58], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x70]
sub dword [esp + 0x2c], 1
and ebp, 0xffff0000
push ecx
mov ecx, dword [esp + 0x70]
mov eax, ebp
sub eax, esi
cdq
push ecx
push edx
push eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x48]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x88]
push edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x58]
push eax
push ecx
push edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov edx, dword [esp + 0x4c]
add eax, dword [esp + 0x50]
mov ecx, ebp
sar ecx, 0x10
lea ecx, [edx + ecx*4]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x20]
and ecx, 0xffff0000
sub ecx, ebp
sar ecx, 0x10
test ecx, ecx
jle 0x4bff0a
mov ebp, dword [esp + 0x10]
lea edx, [eax - 0x8000]
add ebp, 0xffff8000
mov dword [esp + 0x74], edx
mov dword [esp + 0x34], ebp
lea esp, [esp]
sub ecx, 1
test ebp, ebp
mov dword [esp + 0xac], ecx
jle 0x4bfc13
and ebp, 0xffff0000
mov eax, ebp
mov dword [esp + 0x10], edx
xor edx, edx
sar eax, 0x10
lea ecx, [ebx - 1]
cmp eax, ecx
setl dl
mov esi, edx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x10]
jmp 0x4bfc1b
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x1c], esi
test edx, edx
jle 0x4bfc52
mov ecx, dword [esp + 0xb8]
mov esi, dword [esp + 0x1c]
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 + 0x28], edx
mov edx, dword [esp + 0x10]
jmp 0x4bfc58
xor edx, edx
mov dword [esp + 0x28], edx
mov ecx, edx
sar ecx, 0x10
imul ecx, ebx
mov eax, ebp
sar eax, 0x10
add ecx, eax
mov ebx, dword [edi + ecx*4]
lea eax, [ecx + esi]
mov eax, dword [edi + eax*4]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
add ecx, eax
mov eax, dword [edi + ecx*4]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x74]
sub eax, edx
add ecx, esi
mov esi, dword [esp + 0x34]
sub esi, ebp
and eax, 0xfffe
add eax, 1
and esi, 0xfffe
add esi, 1
mov dword [esp + 0x28], esi
mov ebp, 0x10000
sub ebp, esi
mov esi, ebp
imul ebp, eax
mov edx, 0x10000
sub edx, eax
imul eax, dword [esp + 0x28]
imul esi, edx
imul edx, dword [esp + 0x28]
shr edx, 0x10
mov ecx, dword [edi + ecx*4]
mov dword [esp + 0x44], ebx
shr ebx, 0x18
shr esi, 0x10
imul esi, ebx
mov ebx, dword [esp + 0x30]
shr ebx, 0x18
imul edx, ebx
mov ebx, dword [esp + 0x10]
shr edx, 0x10
mov dword [esp + 0x14], edx
shr ebp, 0x10
shr eax, 0x10
mov edx, ebx
shr edx, 0x18
imul ebp, edx
mov edx, ecx
shr edx, 0x18
imul eax, edx
shr eax, 0x10
mov edx, eax
mov dword [esp + 0x28], edx
mov eax, ecx
and eax, 0xff0000
imul eax, edx
shr ebp, 0x10
mov edx, ebx
and edx, 0xff0000
imul edx, ebp
add eax, edx
mov edx, dword [esp + 0x30]
and edx, 0xff0000
imul edx, dword [esp + 0x14]
add eax, edx
mov edx, dword [esp + 0x44]
and edx, 0xff0000
shr esi, 0x10
imul edx, esi
add eax, edx
mov dword [esp + 0x1c], ebp
movzx ebp, cl
imul ebp, dword [esp + 0x28]
movzx edx, bl
imul edx, dword [esp + 0x1c]
and eax, 0xff0000ff
add ebp, edx
movzx edx, byte [esp + 0x30]
imul edx, dword [esp + 0x14]
add ebp, edx
mov edx, dword [esp + 0x44]
movzx ebx, dl
imul ebx, esi
and ecx, 0xff00
imul ecx, dword [esp + 0x28]
add ebp, ebx
mov ebx, dword [esp + 0x10]
and ebx, 0xff00
imul ebx, dword [esp + 0x1c]
add ecx, ebx
mov ebx, dword [esp + 0x30]
and ebp, 0xff00
or eax, ebp
mov ebp, dword [esp + 0x14]
and ebx, 0xff00
and edx, 0xff00
imul ebx, ebp
imul edx, esi
add ecx, ebx
add ecx, edx
mov edx, dword [esp + 0x1c]
and ecx, 0xff0000
or eax, ecx
mov ecx, dword [esp + 0x28]
add ecx, edx
add ecx, ebp
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 0x4bfecd
mov esi, dword [esp + 0xc4]
mov edx, dword [esi]
mov ecx, eax
movzx ebx, al
imul ebx, dword [esi + 0xc]
and ecx, 0xff0000
imul ecx, dword [esi + 4]
and eax, 0xff00
imul eax, dword [esi + 8]
and ecx, 0xff0000ff
and eax, 0xff0000
and ebx, 0xff00
or ecx, ebx
or ecx, eax
shr ecx, 8
mov ebx, dword [esp + 0x38]
mov eax, ecx
mov esi, ecx
and eax, 0xff0000
imul eax, edx
movzx ecx, cl
imul ecx, edx
and esi, 0xff00
imul esi, edx
mov edx, dword [ebx]
and eax, 0xff0000ff
and ecx, 0xff00
and esi, 0xff0000
or eax, esi
or eax, ecx
shr eax, 8
mov esi, eax
and eax, 0xff00
and esi, 0xff00ff
mov ecx, edx
and ecx, 0xff00ff
add ecx, esi
mov esi, ecx
and edx, 0xff00
add edx, eax
mov eax, ecx
shr eax, 8
and eax, 1
shr esi, 0x18
imul eax, eax, 0xff
and esi, 1
imul esi, esi, 0xffff0000
or eax, esi
or eax, ecx
mov ecx, edx
shr ecx, 0x10
and ecx, 1
neg ecx
shl ecx, 8
or ecx, edx
and eax, 0xffff00ff
and ecx, 0xff00
or eax, ecx
or eax, 0xff000000
mov dword [ebx], eax
mov ebp, dword [esp + 0x34]
mov edx, dword [esp + 0x74]
add ebp, dword [esp + 0x8c]
add edx, dword [esp + 0x80]
mov ecx, dword [esp + 0xac]
add dword [esp + 0x38], 4
test ecx, ecx
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x74], edx
jg 0x4bfbe0
mov esi, dword [esp + 0x90]
mov eax, dword [esp + 0xb4]
add dword [esp + 0x24], eax
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0xa0]
add dword [esp + 0x20], edx
add dword [esp + 0x50], ecx
add esi, eax
mov eax, dword [esp + 0xa4]
add eax, eax
add eax, eax
add dword [esp + 0x4c], eax
mov eax, dword [esp + 0xa8]
add dword [esp + 0x48], eax
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x90], esi
jg 0x4bfb2e
jmp 0x4c03c2
jle 0x4c03c2
cmp dword [esp + 0x2c], 0
jle 0x4c03c2
mov eax, dword [esp + 0x8c]
cdq
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x70], edx
cdq
mov dword [esp + 0x58], edx
lea edx, [esi + 0xffff]
add ecx, 0xffff
mov dword [esp + 0x54], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], ecx
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x70]
sub dword [esp + 0x2c], 1
and ebp, 0xffff0000
push ecx
mov ecx, dword [esp + 0x70]
mov eax, ebp
sub eax, esi
cdq
push ecx
push edx
push eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x48]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x98]
push edx
mov edx, dword [esp + 0x98]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x58]
push eax
push ecx
push edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov edx, dword [esp + 0x4c]
add eax, dword [esp + 0x50]
mov ecx, ebp
sar ecx, 0x10
lea ecx, [edx + ecx*4]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x1c]
and ecx, 0xffff0000
sub ecx, ebp
sar ecx, 0x10
test ecx, ecx
jle 0x4c0376
mov esi, dword [esp + 0xac]
add eax, 0xffff8000
add esi, 0xffff8000
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], esi
sub ecx, 1
test esi, esi
mov dword [esp + 0x84], ecx
jle 0x4c0089
and esi, 0xffff0000
mov edx, esi
mov dword [esp + 0xac], 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 + 0xac]
jmp 0x4c0091
xor esi, esi
xor edx, edx
mov dword [esp + 0x10], edx
xor ecx, ecx
cmp eax, ecx
jle 0x4c00d2
mov ecx, eax
mov eax, dword [esp + 0xb8]
and ecx, 0xffff0000
mov edx, ecx
mov dword [esp + 0xac], ecx
sar edx, 0x10
xor ecx, ecx
add eax, 0xffffffff
cmp edx, eax
mov edx, dword [esp + 0x10]
setge cl
sub ecx, 1
and ecx, ebx
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0xac]
jmp 0x4c00d6
mov dword [esp + 0x44], ecx
mov eax, ecx
sar eax, 0x10
imul eax, ebx
mov ebx, esi
sar ebx, 0x10
add eax, ebx
mov ebx, dword [edi + eax*4]
lea ebp, [eax + edx]
mov ebp, dword [edi + ebp*4]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x44]
add eax, ebp
mov ebp, dword [edi + eax*4]
add eax, edx
mov edx, dword [edi + eax*4]
mov eax, dword [esp + 0x38]
sub eax, ecx
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x34]
sub edx, esi
and eax, 0xfffe
add eax, 1
mov dword [esp + 0x30], ebp
and edx, 0xfffe
add edx, 1
mov dword [esp + 0x20], ebx
shr ebx, 0x18
mov ebp, 0x10000
sub ebp, edx
mov ecx, ebp
imul ebp, eax
mov esi, 0x10000
sub esi, eax
imul eax, edx
imul ecx, esi
imul esi, edx
mov edx, dword [esp + 0x10]
shr ecx, 0x10
imul ecx, ebx
mov ebx, dword [esp + 0x14]
shr ebx, 0x18
shr esi, 0x10
imul esi, ebx
mov ebx, dword [esp + 0x30]
shr ebx, 0x18
shr eax, 0x10
shr ebp, 0x10
imul ebp, ebx
mov ebx, edx
shr ebx, 0x18
imul eax, ebx
shr eax, 0x10
mov ebx, eax
mov dword [esp + 0x24], ebx
mov eax, edx
and eax, 0xff00
imul eax, ebx
mov ebx, dword [esp + 0x30]
and ebx, 0xff00
shr ebp, 0x10
imul ebx, ebp
add eax, ebx
mov ebx, dword [esp + 0x14]
and ebx, 0xff00
shr esi, 0x10
imul ebx, esi
add eax, ebx
mov ebx, dword [esp + 0x20]
and ebx, 0xff00
shr ecx, 0x10
imul ebx, ecx
add eax, ebx
mov ebx, dword [esp + 0x30]
and edx, 0xff0000
imul edx, dword [esp + 0x24]
and ebx, 0xff0000
imul ebx, ebp
add edx, ebx
mov ebx, dword [esp + 0x14]
and eax, 0xff0000
and ebx, 0xff0000
imul ebx, esi
add edx, ebx
mov ebx, dword [esp + 0x20]
and ebx, 0xff0000
imul ebx, ecx
add edx, ebx
movzx ebx, byte [esp + 0x30]
and edx, 0xff0000ff
imul ebx, ebp
or eax, edx
movzx edx, byte [esp + 0x10]
imul edx, dword [esp + 0x24]
add edx, ebx
movzx ebx, byte [esp + 0x14]
imul ebx, esi
add edx, ebx
movzx ebx, byte [esp + 0x20]
imul ebx, ecx
add edx, ebx
and edx, 0xff00
or eax, edx
mov edx, dword [esp + 0x24]
add edx, ebp
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 0x4c0339
mov esi, dword [esp + 0xc4]
mov edx, dword [esi]
mov ecx, eax
movzx ebx, al
imul ebx, dword [esi + 0xc]
and ecx, 0xff0000
imul ecx, dword [esi + 4]
and eax, 0xff00
imul eax, dword [esi + 8]
and ecx, 0xff0000ff
and eax, 0xff0000
and ebx, 0xff00
or ecx, ebx
or ecx, eax
shr ecx, 8
mov ebx, dword [esp + 0x74]
mov eax, ecx
mov esi, ecx
and eax, 0xff0000
imul eax, edx
movzx ecx, cl
imul ecx, edx
and esi, 0xff00
imul esi, edx
mov edx, dword [ebx]
and eax, 0xff0000ff
and ecx, 0xff00
and esi, 0xff0000
or eax, esi
or eax, ecx
shr eax, 8
mov esi, eax
and eax, 0xff00
and esi, 0xff00ff
mov ecx, edx
and ecx, 0xff00ff
add ecx, esi
mov esi, ecx
and edx, 0xff00
add edx, eax
mov eax, ecx
shr eax, 8
and eax, 1
shr esi, 0x18
imul eax, eax, 0xff
and esi, 1
imul esi, esi, 0xffff0000
or eax, esi
or eax, ecx
mov ecx, edx
shr ecx, 0x10
and ecx, 1
neg ecx
shl ecx, 8
or ecx, edx
and eax, 0xffff00ff
and ecx, 0xff00
or eax, ecx
or eax, 0xff000000
mov dword [ebx], eax
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
add esi, dword [esp + 0x8c]
add eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
add dword [esp + 0x74], 4
test ecx, ecx
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], eax
jg 0x4c0050
mov esi, dword [esp + 0x90]
mov eax, dword [esp + 0xb4]
add dword [esp + 0x1c], eax
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0xa0]
add dword [esp + 0x28], edx
add dword [esp + 0x50], ecx
add esi, eax
mov eax, dword [esp + 0xa4]
add eax, eax
add eax, eax
add dword [esp + 0x4c], eax
mov eax, dword [esp + 0xa8]
add dword [esp + 0x48], eax
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x90], esi
jg 0x4bffa0
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x60]
mov dword [esp + 0x2c], eax
je 0x4c0d4f
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 4]
mov ebp, dword [eax]
mov edx, dword [esp + 0x9c]
mov eax, dword [edx + 4]
sub eax, ecx
cdq
push edx
push eax
push 0x10000
push 0
mov dword [esp + 0x94], ecx
mov dword [esp + 0x24], ebp
call fcn.0062e060
mov ecx, eax
mov eax, edx
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x3c], eax
mov eax, dword [edx]
sub eax, ebp
cdq
push edx
push eax
mov eax, dword [esp + 0x44]
push eax
push ecx
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov ecx, eax
mov eax, dword [esp + 0x60]
shl eax, 0x10
sub eax, dword [esp + 0x84]
mov dword [esp + 0x30], ecx
imul ecx
mov cl, 0x10
call fcn.00639880
mov edx, dword [esp + 0x64]
mov ecx, eax
mov eax, ebp
add ecx, eax
cmp edx, eax
jge 0x4c08da
cmp dword [esp + 0x2c], 0
jle 0x4c0d4f
mov eax, dword [esp + 0x8c]
cdq
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x70], edx
cdq
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x58], edx
lea edx, [eax*4]
add ecx, 0xffff
lea eax, [esi + 0xffff]
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x38], eax
mov ebp, dword [esp + 0x38]
mov ecx, dword [esp + 0x70]
sub dword [esp + 0x2c], 1
and ebp, 0xffff0000
push ecx
mov ecx, dword [esp + 0x70]
mov eax, ebp
sub eax, esi
cdq
push ecx
push edx
push eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x48]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x98]
push edx
mov edx, dword [esp + 0x98]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x58]
push eax
push ecx
push edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov edx, dword [esp + 0x4c]
add eax, dword [esp + 0x50]
mov ecx, ebp
sar ecx, 0x10
lea ecx, [edx + ecx*4]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x1c]
and ecx, 0xffff0000
sub ecx, ebp
sar ecx, 0x10
test ecx, ecx
jle 0x4c088a
mov ebp, dword [esp + 0x3c]
lea edx, [eax - 0x8000]
add ebp, 0xffff8000
mov dword [esp + 0x34], edx
mov dword [esp + 0x74], ebp
jmp 0x4c0560
sub ecx, 1
test ebp, ebp
mov dword [esp + 0x84], ecx
jle 0x4c0593
and ebp, 0xffff0000
mov eax, ebp
mov dword [esp + 0x3c], edx
xor edx, edx
sar eax, 0x10
lea ecx, [ebx - 1]
cmp eax, ecx
setl dl
mov esi, edx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x3c]
jmp 0x4c059b
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x18], esi
test edx, edx
jle 0x4c05d2
mov ecx, dword [esp + 0xb8]
mov esi, dword [esp + 0x18]
and edx, 0xffff0000
mov eax, edx
mov dword [esp + 0x3c], 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 + 0x3c]
jmp 0x4c05d8
xor edx, edx
mov dword [esp + 0x10], edx
mov ecx, edx
sar ecx, 0x10
imul ecx, ebx
mov eax, ebp
sar eax, 0x10
add ecx, eax
mov ebx, dword [edi + ecx*4]
lea eax, [ecx + esi]
mov eax, dword [edi + eax*4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
add ecx, eax
mov eax, dword [edi + ecx*4]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
sub eax, edx
add ecx, esi
mov esi, dword [esp + 0x74]
sub esi, ebp
and eax, 0xfffe
add eax, 1
and esi, 0xfffe
add esi, 1
mov dword [esp + 0x18], esi
mov ebp, 0x10000
sub ebp, esi
mov esi, ebp
imul ebp, eax
mov edx, 0x10000
sub edx, eax
imul eax, dword [esp + 0x18]
imul esi, edx
imul edx, dword [esp + 0x18]
shr edx, 0x10
mov ecx, dword [edi + ecx*4]
mov dword [esp + 0x44], 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 ebp, 0x10
shr eax, 0x10
mov edx, ebx
shr edx, 0x18
imul ebp, edx
mov edx, ecx
shr edx, 0x18
imul eax, edx
shr eax, 0x10
mov edx, eax
mov dword [esp + 0x60], edx
mov eax, ecx
and eax, 0xff0000
imul eax, edx
shr ebp, 0x10
mov edx, ebx
and edx, 0xff0000
imul edx, ebp
add eax, edx
mov edx, dword [esp + 0x14]
and edx, 0xff0000
imul edx, dword [esp + 0x64]
add eax, edx
mov edx, dword [esp + 0x44]
and edx, 0xff0000
shr esi, 0x10
imul edx, esi
add eax, edx
mov dword [esp + 0x20], ebp
movzx ebp, cl
imul ebp, dword [esp + 0x60]
movzx edx, bl
imul edx, dword [esp + 0x20]
and eax, 0xff0000ff
add ebp, edx
movzx edx, byte [esp + 0x14]
imul edx, dword [esp + 0x64]
add ebp, edx
mov edx, dword [esp + 0x44]
movzx ebx, dl
imul ebx, esi
and ecx, 0xff00
imul ecx, dword [esp + 0x60]
add ebp, ebx
mov ebx, dword [esp + 0x10]
and ebx, 0xff00
imul ebx, dword [esp + 0x20]
add ecx, ebx
mov ebx, dword [esp + 0x14]
and ebp, 0xff00
or eax, ebp
mov ebp, dword [esp + 0x64]
and ebx, 0xff00
and edx, 0xff00
imul ebx, ebp
imul edx, esi
add ecx, ebx
add ecx, edx
mov edx, dword [esp + 0x20]
and ecx, 0xff0000
or eax, ecx
mov ecx, dword [esp + 0x60]
add ecx, edx
add ecx, ebp
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 0x4c084d
mov esi, dword [esp + 0xc4]
mov edx, dword [esi]
mov ecx, eax
movzx ebx, al
imul ebx, dword [esi + 0xc]
and ecx, 0xff0000
imul ecx, dword [esi + 4]
and eax, 0xff00
imul eax, dword [esi + 8]
and ecx, 0xff0000ff
and eax, 0xff0000
and ebx, 0xff00
or ecx, ebx
or ecx, eax
shr ecx, 8
mov ebx, dword [esp + 0x24]
mov eax, ecx
mov esi, ecx
and eax, 0xff0000
imul eax, edx
movzx ecx, cl
imul ecx, edx
and esi, 0xff00
imul esi, edx
mov edx, dword [ebx]
and eax, 0xff0000ff
and ecx, 0xff00
and esi, 0xff0000
or eax, esi
or eax, ecx
shr eax, 8
mov esi, eax
and eax, 0xff00
and esi, 0xff00ff
mov ecx, edx
and ecx, 0xff00ff
add ecx, esi
mov esi, ecx
and edx, 0xff00
add edx, eax
mov eax, ecx
shr eax, 8
and eax, 1
shr esi, 0x18
imul eax, eax, 0xff
and esi, 1
imul esi, esi, 0xffff0000
or eax, esi
or eax, ecx
mov ecx, edx
shr ecx, 0x10
and ecx, 1
neg ecx
shl ecx, 8
or ecx, edx
and eax, 0xffff00ff
and ecx, 0xff00
or eax, ecx
or eax, 0xff000000
mov dword [ebx], eax
mov ebp, dword [esp + 0x74]
mov edx, dword [esp + 0x34]
add ebp, dword [esp + 0x8c]
add edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
add dword [esp + 0x24], 4
test ecx, ecx
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x74], ebp
mov dword [esp + 0x34], edx
jg 0x4c0560
mov esi, dword [esp + 0x90]
mov eax, dword [esp + 0xb4]
mov edx, dword [esp + 0x30]
add dword [esp + 0x38], eax
add dword [esp + 0x1c], edx
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xa0]
add dword [esp + 0x48], ecx
add dword [esp + 0x50], edx
add esi, eax
mov eax, dword [esp + 0x28]
add dword [esp + 0x4c], eax
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x90], esi
jg 0x4c04ab
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret
jle 0x4c0d4f
cmp dword [esp + 0x2c], 0
jle 0x4c0d4f
mov eax, dword [esp + 0x8c]
cdq
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x70], edx
cdq
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x58], edx
lea edx, [eax*4]
lea eax, [esi + 0xffff]
add ecx, 0xffff
mov dword [esp + 0x28], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], ecx
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x70]
sub dword [esp + 0x2c], 1
and ebp, 0xffff0000
push ecx
mov ecx, dword [esp + 0x70]
mov eax, ebp
sub eax, esi
cdq
push ecx
push edx
push eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x48]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x98]
push edx
mov edx, dword [esp + 0x98]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x58]
push eax
push ecx
push edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov edx, dword [esp + 0x4c]
add eax, dword [esp + 0x50]
mov ecx, ebp
sar ecx, 0x10
lea ecx, [edx + ecx*4]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x38]
and ecx, 0xffff0000
sub ecx, ebp
sar ecx, 0x10
test ecx, ecx
jle 0x4c0d0a
mov ebp, dword [esp + 0x3c]
lea edx, [eax - 0x8000]
add ebp, 0xffff8000
mov dword [esp + 0x34], edx
mov dword [esp + 0x74], ebp
lea esp, [esp]
sub ecx, 1
test ebp, ebp
mov dword [esp + 0x84], ecx
jle 0x4c0a13
and ebp, 0xffff0000
mov eax, ebp
mov dword [esp + 0x3c], edx
xor edx, edx
sar eax, 0x10
lea ecx, [ebx - 1]
cmp eax, ecx
setl dl
mov esi, edx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x3c]
jmp 0x4c0a1b
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x18], esi
test edx, edx
jle 0x4c0a52
mov ecx, dword [esp + 0xb8]
mov esi, dword [esp + 0x18]
and edx, 0xffff0000
mov eax, edx
mov dword [esp + 0x3c], 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 + 0x3c]
jmp 0x4c0a58
xor edx, edx
mov dword [esp + 0x10], edx
mov ecx, edx
sar ecx, 0x10
imul ecx, ebx
mov eax, ebp
sar eax, 0x10
add ecx, eax
mov ebx, dword [edi + ecx*4]
lea eax, [ecx + esi]
mov eax, dword [edi + eax*4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
add ecx, eax
mov eax, dword [edi + ecx*4]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
sub eax, edx
add ecx, esi
mov esi, dword [esp + 0x74]
sub esi, ebp
and eax, 0xfffe
add eax, 1
and esi, 0xfffe
add esi, 1
mov dword [esp + 0x18], esi
mov ebp, 0x10000
sub ebp, esi
mov esi, ebp
imul ebp, eax
mov edx, 0x10000
sub edx, eax
imul eax, dword [esp + 0x18]
imul esi, edx
imul edx, dword [esp + 0x18]
shr edx, 0x10
mov ecx, dword [edi + ecx*4]
mov dword [esp + 0x44], 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 ebp, 0x10
shr eax, 0x10
mov edx, ebx
shr edx, 0x18
imul ebp, edx
mov edx, ecx
shr edx, 0x18
imul eax, edx
shr eax, 0x10
mov edx, eax
mov dword [esp + 0x60], edx
mov eax, ecx
and eax, 0xff0000
imul eax, edx
shr ebp, 0x10
mov edx, ebx
and edx, 0xff0000
imul edx, ebp
add eax, edx
mov edx, dword [esp + 0x14]
and edx, 0xff0000
imul edx, dword [esp + 0x64]
add eax, edx
mov edx, dword [esp + 0x44]
and edx, 0xff0000
shr esi, 0x10
imul edx, esi
add eax, edx
mov dword [esp + 0x20], ebp
movzx ebp, cl
imul ebp, dword [esp + 0x60]
movzx edx, bl
imul edx, dword [esp + 0x20]
and eax, 0xff0000ff
add ebp, edx
movzx edx, byte [esp + 0x14]
imul edx, dword [esp + 0x64]
add ebp, edx
mov edx, dword [esp + 0x44]
movzx ebx, dl
imul ebx, esi
and ecx, 0xff00
imul ecx, dword [esp + 0x60]
add ebp, ebx
mov ebx, dword [esp + 0x10]
and ebx, 0xff00
imul ebx, dword [esp + 0x20]
add ecx, ebx
mov ebx, dword [esp + 0x14]
and ebp, 0xff00
or eax, ebp
mov ebp, dword [esp + 0x64]
and ebx, 0xff00
and edx, 0xff00
imul ebx, ebp
imul edx, esi
add ecx, ebx
add ecx, edx
mov edx, dword [esp + 0x20]
and ecx, 0xff0000
or eax, ecx
mov ecx, dword [esp + 0x60]
add ecx, edx
add ecx, ebp
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 0x4c0ccd
mov esi, dword [esp + 0xc4]
mov edx, dword [esi]
mov ecx, eax
movzx ebx, al
imul ebx, dword [esi + 0xc]
and ecx, 0xff0000
imul ecx, dword [esi + 4]
and eax, 0xff00
imul eax, dword [esi + 8]
and ecx, 0xff0000ff
and eax, 0xff0000
and ebx, 0xff00
or ecx, ebx
or ecx, eax
shr ecx, 8
mov ebx, dword [esp + 0x24]
mov eax, ecx
mov esi, ecx
and eax, 0xff0000
imul eax, edx
movzx ecx, cl
imul ecx, edx
and esi, 0xff00
imul esi, edx
mov edx, dword [ebx]
and eax, 0xff0000ff
and ecx, 0xff00
and esi, 0xff0000
or eax, esi
or eax, ecx
shr eax, 8
mov esi, eax
and eax, 0xff00
and esi, 0xff00ff
mov ecx, edx
and ecx, 0xff00ff
add ecx, esi
mov esi, ecx
and edx, 0xff00
add edx, eax
mov eax, ecx
shr eax, 8
and eax, 1
shr esi, 0x18
imul eax, eax, 0xff
and esi, 1
imul esi, esi, 0xffff0000
or eax, esi
or eax, ecx
mov ecx, edx
shr ecx, 0x10
and ecx, 1
neg ecx
shl ecx, 8
or ecx, edx
and eax, 0xffff00ff
and ecx, 0xff00
or eax, ecx
or eax, 0xff000000
mov dword [ebx], eax
mov ebp, dword [esp + 0x74]
mov edx, dword [esp + 0x34]
add ebp, dword [esp + 0x8c]
add edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
add dword [esp + 0x24], 4
test ecx, ecx
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x74], ebp
mov dword [esp + 0x34], edx
jg 0x4c09e0
mov esi, dword [esp + 0x90]
mov eax, dword [esp + 0xb4]
mov edx, dword [esp + 0x30]
add dword [esp + 0x38], eax
add dword [esp + 0x1c], edx
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xa0]
add dword [esp + 0x48], ecx
add dword [esp + 0x50], edx
add esi, eax
mov eax, dword [esp + 0x28]
add dword [esp + 0x4c], eax
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x90], esi
jg 0x4c0931
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret