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

Disassembly:
sub esp, 0xe4
shr edx, 1
mov dword [esp + 0xd0], edx
mov edx, dword [ecx + 0x10]
mov dword [esp + 0xdc], edx
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx]
push ebx
push ebp
mov dword [esp + 0xe8], edx
mov edx, dword [eax + 4]
cmp edx, dword [eax + 0x24]
mov dword [esp + 0xe0], ecx
lea ecx, [eax + 0x20]
push esi
lea ebp, [eax + 0x40]
push edi
mov esi, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0xb0], ebp
jle 0x4d66c3
mov esi, ecx
mov dword [esp + 0x30], eax
mov ecx, eax
mov eax, dword [ecx + 4]
cmp eax, dword [ebp + 4]
jle 0x4d66dc
mov dword [esp + 0x30], ebp
mov ebp, ecx
mov dword [esp + 0xb0], ecx
mov ecx, dword [esp + 0x30]
mov edx, dword [esi + 4]
cmp edx, dword [ecx + 4]
jle 0x4d66ee
mov eax, esi
mov esi, ecx
mov dword [esp + 0x30], eax
mov ecx, eax
mov eax, dword [esi + 4]
lea edx, [eax + 0xffff]
mov eax, dword [ebp + 4]
lea edi, [eax + 0xffff]
sar edx, 0x10
sar edi, 0x10
cmp edx, edi
mov dword [esp + 0x18], edx
mov dword [esp + 0xc0], edi
je 0x4d7c0e
mov ecx, dword [ecx + 4]
add ecx, 0xffff
sar ecx, 0x10
mov dword [esp + 0xd4], ecx
mov ecx, dword [esi + 4]
sub eax, ecx
cdq
push edx
push eax
push 0x10000
push 0
call fcn.0062e060
mov ecx, dword [esi]
mov edi, eax
mov eax, dword [ebp]
mov ebx, edx
push ebx
sub eax, ecx
cdq
push edi
push edx
push eax
mov dword [esp + 0x74], ecx
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov dword [esp + 0xe4], eax
mov eax, dword [ebp + 8]
sub eax, dword [esi + 8]
push ebx
cdq
push edi
push edx
push eax
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov dword [esp + 0xd8], eax
mov eax, dword [ebp + 0xc]
sub eax, dword [esi + 0xc]
push ebx
cdq
push edi
push edx
push eax
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov dword [esp + 0xcc], eax
mov eax, dword [ebp + 0x10]
sub eax, dword [esi + 0x10]
push ebx
cdq
push edi
push edx
push eax
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov dword [esp + 0xc8], eax
mov eax, dword [ebp + 0x14]
sub eax, dword [esi + 0x14]
push ebx
cdq
push edi
push edx
push eax
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov dword [esp + 0xdc], eax
mov eax, dword [ebp + 0x18]
sub eax, dword [esi + 0x18]
push ebx
cdq
push edi
push edx
push eax
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov dword [esp + 0xc4], eax
mov eax, dword [ebp + 0x1c]
sub eax, dword [esi + 0x1c]
push ebx
cdq
push edi
push edx
push eax
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 4]
sub eax, dword [esi + 4]
cdq
mov ecx, eax
mov eax, dword [esp + 0xe4]
mov edi, edx
push edi
cdq
push ecx
mov ebp, eax
push edx
push ebp
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edi
mov dword [esp + 0x68], edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx]
cmp ecx, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x68], ecx
je 0x4d7c0e
mov eax, dword [esp + 0x18]
shl eax, 0x10
sub eax, dword [esi + 4]
cdq
mov ebx, edx
mov edx, dword [esp + 0x58]
push ebx
mov edi, eax
push edi
push edx
push ebp
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x64]
push ebx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xdc]
cdq
push edi
mov ebp, eax
mov eax, dword [esi + 8]
push edx
push ebp
mov dword [esp + 0xc8], edx
mov dword [esp + 0x30], eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x20]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xcc]
cdq
push ebx
push edi
push edx
push eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], edx
mov dword [esp + 0x34], ecx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xc8]
cdq
push ebx
push edi
push edx
push eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], edx
mov dword [esp + 0x2c], ecx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xdc]
cdq
push ebx
push edi
push edx
push eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], edx
mov dword [esp + 0x24], ecx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xc4]
cdq
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edx
push ebx
push edi
push edx
push eax
mov dword [esp + 0x20], ecx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x10]
mov esi, dword [esi + 0x1c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xd0]
cdq
push ebx
push edi
push edx
push eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], edx
mov dword [esp + 0x70], esi
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, esi
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x5c]
cdq
push edx
push eax
push 0x10000
push 0
call fcn.0062e060
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x70]
push edx
mov esi, eax
mov eax, dword [esp + 0x70]
push eax
push ecx
push ebp
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ebp, edx
mov edx, dword [esp + 0x30]
mov ecx, eax
mov eax, dword [edx + 8]
cdq
sub eax, ecx
sbb edx, ebp
mov ecx, eax
mov eax, dword [esp + 0x20]
mov ebp, edx
cdq
sub ecx, eax
sbb ebp, edx
mov edx, dword [esp + 0x58]
push edx
push esi
push ebp
push ecx
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x80]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x80]
push ecx
push edx
push eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ecx, eax
mov ebp, edx
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0xc]
cdq
sub eax, ecx
sbb edx, ebp
mov ecx, eax
mov eax, dword [esp + 0x24]
mov ebp, edx
cdq
sub ecx, eax
sbb ebp, edx
mov edx, dword [esp + 0x58]
push edx
push esi
push ebp
push ecx
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x98]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x98]
push ecx
push edx
push eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ebp, edx
mov edx, dword [esp + 0x30]
mov ecx, eax
mov eax, dword [edx + 0x10]
cdq
sub eax, ecx
sbb edx, ebp
mov ecx, eax
mov eax, dword [esp + 0x1c]
mov ebp, edx
cdq
sub ecx, eax
sbb ebp, edx
mov edx, dword [esp + 0x58]
push edx
push esi
push ebp
push ecx
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x88]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x88]
push ecx
push edx
push eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ecx, eax
mov ebp, edx
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x14]
cdq
sub eax, ecx
mov ecx, eax
mov eax, dword [esp + 0x14]
sbb edx, ebp
mov ebp, edx
cdq
sub ecx, eax
sbb ebp, edx
mov edx, dword [esp + 0x58]
push edx
push esi
push ebp
push ecx
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x78]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x78]
push ecx
push edx
push eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ebp, edx
mov edx, dword [esp + 0x30]
mov ecx, eax
mov eax, dword [edx + 0x18]
cdq
sub eax, ecx
sbb edx, ebp
mov ecx, eax
mov eax, dword [esp + 0x10]
mov ebp, edx
cdq
sub ecx, eax
sbb ebp, edx
mov edx, dword [esp + 0x58]
push edx
push esi
push ebp
push ecx
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x90]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x90]
push ecx
push edx
push eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ebp, edx
mov edx, dword [esp + 0x30]
mov ecx, eax
mov eax, dword [edx + 0x1c]
cdq
sub eax, ecx
sbb edx, ebp
mov ecx, eax
mov eax, dword [esp + 0x60]
mov ebp, edx
cdq
sub ecx, eax
sbb ebp, edx
mov edx, dword [esp + 0x58]
push edx
push esi
push ebp
push ecx
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xf8]
mov dword [esp + 0x60], eax
mov eax, ecx
imul eax, dword [esp + 0xe0]
lea eax, [edx + eax*2]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xd4]
sub eax, ecx
mov dword [esp + 0x28], eax
je 0x4d73f8
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x70]
cdq
push ecx
mov ebp, edx
mov edx, dword [esp + 0x70]
push edx
push 0x10000
push 0
mov esi, eax
call fcn.0062e060
push edx
push eax
push ebp
push esi
call fcn.00630410
mov cl, 0x20
call fcn.00639880
push ebx
mov dword [esp + 0xb8], eax
cdq
push edi
push edx
push eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov edx, dword [esp + 0x5c]
mov ecx, eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
add ecx, dword [esp + 0x64]
cmp edx, eax
jge 0x4d704d
cmp dword [esp + 0x28], 0
jle 0x4d73f8
mov eax, dword [esp + 0xa8]
cdq
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x90], edx
cdq
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x78], edx
cdq
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x88], edx
cdq
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x98], edx
cdq
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x80], edx
cdq
add ecx, 0xffff
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0xe0]
mov dword [esp + 0x54], eax
lea eax, [edx + edx]
add ecx, 0xffff
mov dword [esp + 0x64], eax
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x24]
sub dword [esp + 0x28], 1
and ebx, 0xffff0000
mov eax, ebx
sub eax, dword [esp + 0x34]
mov dword [esp + 0x6c], ebx
cdq
mov edi, edx
mov edx, dword [esp + 0x90]
push edi
mov esi, eax
mov eax, dword [esp + 0x90]
push esi
push edx
push eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
push edi
push esi
push ecx
mov ebp, eax
add ebp, dword [esp + 0x50]
push edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x84]
push edi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x8c]
push esi
push eax
push ecx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x50]
mov edx, dword [esp + 0x98]
push edi
push esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x9c]
push edx
push eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ecx, dword [esp + 0x80]
add eax, dword [esp + 0x40]
mov edx, dword [esp + 0x7c]
push edi
push esi
push ecx
push edx
mov dword [esp + 0x24], eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x54]
push edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x5c]
push esi
push eax
push ecx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov edx, dword [esp + 0x38]
add eax, dword [esp + 0x4c]
sar ebx, 0x10
lea ecx, [edx + ebx*2]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x68], ecx
and ebx, 0xffff0000
sub ebx, dword [esp + 0x6c]
sar ebx, 0x10
test ebx, ebx
jle 0x4d6fd9
mov edx, dword [esp + 0x1c]
shr eax, 0x10
imul eax, dword [esp + 0xec]
shr edx, 0x10
add eax, edx
sub ebx, 1
cmp eax, dword [esp + 0xf0]
jae 0x4d6e83
mov ecx, dword [esp + 0xe8]
mov edx, dword [ecx + eax*4]
jmp 0x4d6e85
xor edx, edx
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
shr eax, 0x10
mov ecx, edx
and ecx, 0xff0000
imul ecx, eax
movzx eax, dl
shr edi, 0x10
imul eax, edi
and eax, 0xff00
and ecx, 0xff0000ff
or ecx, eax
mov eax, dword [esp + 0x10]
and edx, 0xff00
shr eax, 0x10
imul edx, eax
and edx, 0xff0000
or ecx, edx
mov edx, dword [esp + 0x68]
movzx edi, word [edx]
mov esi, ebp
shr esi, 0x10
imul esi, esi, 0xff
shr esi, 8
shr ecx, 8
mov edx, edi
and edx, 0xf800
shl edx, 5
mov eax, edi
and eax, 0x1f
or edx, eax
mov eax, ecx
and eax, 0xff00ff
imul eax, esi
add edx, edx
add edx, edx
shr eax, 8
add edx, edx
and eax, 0xff00ff
and ecx, 0xff00
imul ecx, esi
or edx, 0x70007
add edx, eax
mov eax, edx
mov esi, edx
shr esi, 8
and esi, 1
imul esi, esi, 0xff
shr eax, 0x18
and eax, 1
imul eax, eax, 0xff0000
or eax, esi
shr ecx, 8
and edi, 0x7e0
and ecx, 0xff00
or edi, 0x18
shl edi, 5
add ecx, edi
mov esi, ecx
shr esi, 0x10
and esi, 1
add ebp, dword [esp + 0xa8]
imul esi, esi, 0xff00
or edx, eax
mov eax, dword [esp + 0x68]
shr esi, 5
shr ecx, 5
or esi, ecx
mov ecx, edx
shr ecx, 3
and esi, 0x7e0
shr edx, 8
and ecx, 0x1f
and edx, 0xf800
or esi, ecx
or esi, edx
mov edx, dword [esp + 0x9c]
mov word [eax], si
add eax, 2
add dword [esp + 0x18], edx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xa4]
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0xa0]
add eax, dword [esp + 0x60]
add dword [esp + 0x14], ecx
add dword [esp + 0x1c], edx
test ebx, ebx
mov dword [esp + 0x2c], eax
jg 0x4d6e57
mov eax, dword [esp + 0xe4]
add dword [esp + 0x34], eax
add dword [esp + 0x24], eax
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0x64]
add dword [esp + 0x20], eax
add dword [esp + 0x38], ecx
mov edx, dword [esp + 0xd8]
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xc8]
add dword [esp + 0x44], edx
add dword [esp + 0x3c], eax
add dword [esp + 0x50], ecx
mov edx, dword [esp + 0xdc]
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0xd0]
add dword [esp + 0x40], edx
add dword [esp + 0x48], eax
add dword [esp + 0x4c], ecx
cmp dword [esp + 0x28], 0
jg 0x4d6d3f
jmp 0x4d73f8
jle 0x4d73f8
cmp dword [esp + 0x28], 0
jle 0x4d73f8
mov eax, dword [esp + 0xa8]
cdq
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x90], edx
cdq
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x78], edx
cdq
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x88], edx
cdq
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x98], edx
cdq
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x80], edx
cdq
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x34]
add edx, 0xffff
add ecx, 0xffff
mov dword [esp + 0x54], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x68], ecx
mov ebx, dword [esp + 0x68]
mov ecx, dword [esp + 0x8c]
sub dword [esp + 0x28], 1
and ebx, 0xffff0000
mov eax, ebx
sub eax, dword [esp + 0x34]
mov dword [esp + 0x6c], ebx
cdq
mov edi, edx
push edi
mov esi, eax
mov eax, dword [esp + 0x94]
push esi
push eax
push ecx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov edx, dword [esp + 0x78]
push edi
push esi
mov ebp, eax
mov eax, dword [esp + 0x7c]
add ebp, dword [esp + 0x4c]
push edx
push eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ecx, dword [esp + 0x88]
add eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x84]
push edi
push esi
push ecx
push edx
mov dword [esp + 0x34], eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x94]
push edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x9c]
push esi
push eax
push ecx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x40]
mov edx, dword [esp + 0x80]
push edi
push esi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x84]
push edx
push eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ecx, dword [esp + 0x58]
add eax, dword [esp + 0x48]
mov edx, dword [esp + 0x54]
push edi
push esi
push ecx
push edx
mov dword [esp + 0x20], eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ecx, dword [esp + 0x38]
add eax, dword [esp + 0x4c]
sar ebx, 0x10
lea edx, [ecx + ebx*2]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], edx
and ebx, 0xffff0000
sub ebx, dword [esp + 0x6c]
sar ebx, 0x10
test ebx, ebx
jle 0x4d7384
mov ecx, dword [esp + 0x10]
shr eax, 0x10
imul eax, dword [esp + 0xec]
shr ecx, 0x10
add eax, ecx
sub ebx, 1
cmp eax, dword [esp + 0xf0]
jae 0x4d722f
mov edx, dword [esp + 0xe8]
mov edx, dword [edx + eax*4]
jmp 0x4d7231
xor edx, edx
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
shr eax, 0x10
mov ecx, edx
and ecx, 0xff0000
imul ecx, eax
movzx eax, dl
shr edi, 0x10
imul eax, edi
and eax, 0xff00
and ecx, 0xff0000ff
or ecx, eax
mov eax, dword [esp + 0x1c]
shr eax, 0x10
and edx, 0xff00
imul eax, edx
mov edx, dword [esp + 0x20]
movzx edi, word [edx]
and eax, 0xff0000
or ecx, eax
mov esi, ebp
shr esi, 0x10
imul esi, esi, 0xff
shr esi, 8
shr ecx, 8
mov edx, edi
and edx, 0xf800
shl edx, 5
mov eax, edi
and eax, 0x1f
or edx, eax
mov eax, ecx
and eax, 0xff00ff
imul eax, esi
add edx, edx
add edx, edx
shr eax, 8
add edx, edx
and eax, 0xff00ff
and ecx, 0xff00
imul ecx, esi
or edx, 0x70007
add edx, eax
mov eax, edx
mov esi, edx
shr esi, 8
and esi, 1
imul esi, esi, 0xff
shr eax, 0x18
and eax, 1
imul eax, eax, 0xff0000
or eax, esi
shr ecx, 8
and edi, 0x7e0
and ecx, 0xff00
or edi, 0x18
shl edi, 5
add ecx, edi
mov esi, ecx
shr esi, 0x10
and esi, 1
add ebp, dword [esp + 0xa8]
imul esi, esi, 0xff00
or edx, eax
mov eax, dword [esp + 0x20]
shr esi, 5
shr ecx, 5
or esi, ecx
mov ecx, edx
shr ecx, 3
and esi, 0x7e0
shr edx, 8
and ecx, 0x1f
and edx, 0xf800
or esi, ecx
or esi, edx
mov edx, dword [esp + 0x9c]
mov word [eax], si
add eax, 2
add dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xa4]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0xa0]
add eax, dword [esp + 0x60]
add dword [esp + 0x14], ecx
add dword [esp + 0x10], edx
test ebx, ebx
mov dword [esp + 0x2c], eax
jg 0x4d7203
mov eax, dword [esp + 0xe4]
add dword [esp + 0x34], eax
add dword [esp + 0x18], eax
mov eax, dword [esp + 0xb4]
add dword [esp + 0x68], eax
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0xd8]
mov edx, dword [esp + 0xcc]
add dword [esp + 0x44], ecx
add dword [esp + 0x3c], edx
mov ecx, dword [esp + 0xdc]
mov edx, dword [esp + 0xc4]
add dword [esp + 0x40], ecx
add dword [esp + 0x48], edx
add eax, eax
add dword [esp + 0x38], eax
mov eax, dword [esp + 0xc8]
add dword [esp + 0x50], eax
mov eax, dword [esp + 0xd0]
add dword [esp + 0x4c], eax
cmp dword [esp + 0x28], 0
jg 0x4d70e8
mov eax, dword [esp + 0xc0]
mov ebp, dword [esp + 0xd4]
sub eax, ebp
mov dword [esp + 0x28], eax
je 0x4d7c0e
mov eax, dword [esp + 0x30]
mov edi, dword [eax + 4]
mov esi, dword [eax]
mov ebx, dword [esp + 0xb0]
mov eax, dword [ebx + 4]
sub eax, edi
cdq
push edx
push eax
push 0x10000
push 0
call fcn.0062e060
mov ecx, eax
mov eax, edx
mov dword [esp + 0xc0], eax
mov eax, dword [ebx]
sub eax, esi
cdq
push edx
push eax
mov eax, dword [esp + 0xc8]
push eax
push ecx
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov ecx, eax
mov eax, ebp
shl eax, 0x10
sub eax, edi
imul ecx
mov dword [esp + 0xd4], ecx
mov cl, 0x10
call fcn.00639880
mov ecx, eax
mov eax, dword [esp + 0x5c]
add ecx, esi
cmp eax, esi
jge 0x4d784b
cmp dword [esp + 0x28], 0
jle 0x4d7c0e
mov eax, dword [esp + 0xa8]
cdq
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x90], edx
cdq
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x78], edx
cdq
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x88], edx
cdq
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x98], edx
cdq
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x80], edx
cdq
add ecx, 0xffff
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0xe0]
mov dword [esp + 0x54], eax
lea eax, [edx + edx]
add ecx, 0xffff
mov dword [esp + 0x64], eax
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x10]
sub dword [esp + 0x28], 1
and ebx, 0xffff0000
mov eax, ebx
sub eax, dword [esp + 0x34]
mov dword [esp + 0xc0], ebx
cdq
mov edi, edx
mov edx, dword [esp + 0x90]
push edi
mov esi, eax
mov eax, dword [esp + 0x90]
push esi
push edx
push eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
push edi
push esi
push ecx
mov ebp, eax
add ebp, dword [esp + 0x50]
push edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x84]
push edi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x8c]
push esi
push eax
push ecx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x50]
mov edx, dword [esp + 0x98]
push edi
push esi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x9c]
push edx
push eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ecx, dword [esp + 0x80]
add eax, dword [esp + 0x40]
mov edx, dword [esp + 0x7c]
push edi
push esi
push ecx
push edx
mov dword [esp + 0x2c], eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x54]
push edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x5c]
push esi
push eax
push ecx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov edx, dword [esp + 0x38]
add eax, dword [esp + 0x4c]
sar ebx, 0x10
lea ecx, [edx + ebx*2]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0xb0], eax
mov dword [esp + 0x5c], ecx
and ebx, 0xffff0000
sub ebx, dword [esp + 0xc0]
sar ebx, 0x10
test ebx, ebx
jle 0x4d77d1
mov edx, dword [esp + 0x14]
shr eax, 0x10
imul eax, dword [esp + 0xec]
shr edx, 0x10
add eax, edx
sub ebx, 1
cmp eax, dword [esp + 0xf0]
jae 0x4d7676
mov ecx, dword [esp + 0xe8]
mov edx, dword [ecx + eax*4]
jmp 0x4d7678
xor edx, edx
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
shr eax, 0x10
mov ecx, edx
and ecx, 0xff0000
imul ecx, eax
movzx eax, dl
shr edi, 0x10
imul eax, edi
and eax, 0xff00
and ecx, 0xff0000ff
or ecx, eax
mov eax, dword [esp + 0x24]
shr eax, 0x10
and edx, 0xff00
imul eax, edx
mov edx, dword [esp + 0x5c]
movzx edi, word [edx]
and eax, 0xff0000
or ecx, eax
mov esi, ebp
shr esi, 0x10
imul esi, esi, 0xff
shr esi, 8
shr ecx, 8
mov edx, edi
and edx, 0xf800
shl edx, 5
mov eax, edi
and eax, 0x1f
or edx, eax
mov eax, ecx
and eax, 0xff00ff
imul eax, esi
add edx, edx
add edx, edx
shr eax, 8
add edx, edx
and eax, 0xff00ff
and ecx, 0xff00
imul ecx, esi
or edx, 0x70007
add edx, eax
mov eax, edx
mov esi, edx
shr esi, 8
and esi, 1
imul esi, esi, 0xff
shr eax, 0x18
and eax, 1
imul eax, eax, 0xff0000
or eax, esi
shr ecx, 8
and edi, 0x7e0
and ecx, 0xff00
or edi, 0x18
shl edi, 5
add ecx, edi
mov esi, ecx
shr esi, 0x10
and esi, 1
add ebp, dword [esp + 0xa8]
imul esi, esi, 0xff00
or edx, eax
mov eax, dword [esp + 0x5c]
shr esi, 5
shr ecx, 5
or esi, ecx
mov ecx, edx
shr ecx, 3
and esi, 0x7e0
shr edx, 8
and ecx, 0x1f
and edx, 0xf800
or esi, ecx
or esi, edx
mov edx, dword [esp + 0x9c]
mov word [eax], si
add eax, 2
add dword [esp + 0x20], edx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0xa4]
add dword [esp + 0x24], eax
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0xa0]
add eax, dword [esp + 0x60]
add dword [esp + 0x1c], ecx
add dword [esp + 0x14], edx
test ebx, ebx
mov dword [esp + 0xb0], eax
jg 0x4d764a
mov eax, dword [esp + 0xe4]
add dword [esp + 0x34], eax
add dword [esp + 0x10], eax
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0x64]
add dword [esp + 0x18], eax
add dword [esp + 0x38], ecx
mov edx, dword [esp + 0xd8]
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xc8]
add dword [esp + 0x44], edx
add dword [esp + 0x3c], eax
add dword [esp + 0x50], ecx
mov edx, dword [esp + 0xdc]
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0xd0]
add dword [esp + 0x40], edx
add dword [esp + 0x48], eax
add dword [esp + 0x4c], ecx
cmp dword [esp + 0x28], 0
jg 0x4d7529
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe4
ret
jle 0x4d7c0e
cmp dword [esp + 0x28], 0
jle 0x4d7c0e
mov eax, dword [esp + 0xa8]
cdq
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x90], edx
cdq
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x78], edx
cdq
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x88], edx
cdq
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x98], edx
cdq
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x80], edx
cdq
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0xe0]
mov dword [esp + 0x54], eax
lea eax, [edx + edx]
mov edx, dword [esp + 0x34]
add edx, 0xffff
add ecx, 0xffff
mov dword [esp + 0x64], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x8c]
sub dword [esp + 0x28], 1
and ebx, 0xffff0000
mov eax, ebx
sub eax, dword [esp + 0x34]
mov dword [esp + 0xc0], ebx
cdq
mov edi, edx
push edi
mov esi, eax
mov eax, dword [esp + 0x94]
push esi
push eax
push ecx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov edx, dword [esp + 0x78]
push edi
push esi
mov ebp, eax
mov eax, dword [esp + 0x7c]
add ebp, dword [esp + 0x4c]
push edx
push eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ecx, dword [esp + 0x88]
add eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x84]
push edi
push esi
push ecx
push edx
mov dword [esp + 0x30], eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x94]
push edi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x9c]
push esi
push eax
push ecx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x40]
mov edx, dword [esp + 0x80]
push edi
push esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x84]
push edx
push eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ecx, dword [esp + 0x58]
add eax, dword [esp + 0x48]
mov edx, dword [esp + 0x54]
push edi
push esi
push ecx
push edx
mov dword [esp + 0x24], eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ecx, dword [esp + 0x38]
add eax, dword [esp + 0x4c]
sar ebx, 0x10
lea edx, [ecx + ebx*2]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0xb0], eax
mov dword [esp + 0x5c], edx
and ebx, 0xffff0000
sub ebx, dword [esp + 0xc0]
sar ebx, 0x10
test ebx, ebx
jle 0x4d7b9f
mov ecx, dword [esp + 0x14]
shr eax, 0x10
imul eax, dword [esp + 0xec]
shr ecx, 0x10
add eax, ecx
sub ebx, 1
cmp eax, dword [esp + 0xf0]
jae 0x4d7a44
mov edx, dword [esp + 0xe8]
mov edx, dword [edx + eax*4]
jmp 0x4d7a46
xor edx, edx
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
shr eax, 0x10
movzx ecx, dl
imul ecx, eax
mov eax, edx
and eax, 0xff0000
shr edi, 0x10
imul eax, edi
and eax, 0xff0000ff
and ecx, 0xff00
or ecx, eax
mov eax, dword [esp + 0x24]
and edx, 0xff00
shr eax, 0x10
imul edx, eax
and edx, 0xff0000
or ecx, edx
mov edx, dword [esp + 0x5c]
movzx edi, word [edx]
mov esi, ebp
shr esi, 0x10
imul esi, esi, 0xff
shr esi, 8
shr ecx, 8
mov edx, edi
and edx, 0xf800
shl edx, 5
mov eax, edi
and eax, 0x1f
or edx, eax
mov eax, ecx
and eax, 0xff00ff
imul eax, esi
add edx, edx
add edx, edx
shr eax, 8
add edx, edx
and eax, 0xff00ff
and ecx, 0xff00
imul ecx, esi
or edx, 0x70007
add edx, eax
mov eax, edx
mov esi, edx
shr esi, 8
and esi, 1
imul esi, esi, 0xff
shr eax, 0x18
and eax, 1
imul eax, eax, 0xff0000
or eax, esi
shr ecx, 8
and edi, 0x7e0
and ecx, 0xff00
or edi, 0x18
shl edi, 5
add ecx, edi
mov esi, ecx
shr esi, 0x10
and esi, 1
add ebp, dword [esp + 0xa8]
imul esi, esi, 0xff00
or edx, eax
mov eax, dword [esp + 0x5c]
shr esi, 5
shr ecx, 5
or esi, ecx
mov ecx, edx
shr ecx, 3
and esi, 0x7e0
shr edx, 8
and ecx, 0x1f
and edx, 0xf800
or esi, ecx
or esi, edx
mov edx, dword [esp + 0x9c]
mov word [eax], si
add eax, 2
add dword [esp + 0x20], edx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0xa4]
add dword [esp + 0x24], eax
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0xa0]
add eax, dword [esp + 0x60]
add dword [esp + 0x1c], ecx
add dword [esp + 0x14], edx
test ebx, ebx
mov dword [esp + 0xb0], eax
jg 0x4d7a18
mov eax, dword [esp + 0xe4]
add dword [esp + 0x34], eax
add dword [esp + 0x10], eax
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0x64]
add dword [esp + 0x18], eax
add dword [esp + 0x38], ecx
mov edx, dword [esp + 0xd8]
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xc8]
add dword [esp + 0x44], edx
add dword [esp + 0x3c], eax
add dword [esp + 0x50], ecx
mov edx, dword [esp + 0xdc]
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0xd0]
add dword [esp + 0x40], edx
add dword [esp + 0x48], eax
add dword [esp + 0x4c], ecx
cmp dword [esp + 0x28], 0
jg 0x4d78f4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe4
ret