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

Disassembly:
sub esp, 0x94
shr edx, 1
mov dword [esp + 0x6c], edx
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x7c], edx
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx]
push ebx
push ebp
mov dword [esp + 0x8c], ecx
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 0x24]
lea ebp, [eax + 0x20]
mov dword [esp + 0x88], edx
lea edx, [eax + 0x40]
push edi
mov ebx, eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x74], edx
jle 0x4d1399
mov ebx, ebp
mov dword [esp + 0x2c], eax
mov ebp, eax
mov eax, dword [ebp + 4]
cmp eax, dword [edx + 4]
jle 0x4d13af
mov dword [esp + 0x74], ebp
mov dword [esp + 0x2c], edx
mov ebp, edx
mov edx, dword [esp + 0x74]
mov ecx, dword [ebx + 4]
cmp ecx, dword [ebp + 4]
jle 0x4d13c1
mov eax, ebx
mov ebx, ebp
mov dword [esp + 0x2c], eax
mov ebp, eax
mov eax, dword [ebx + 4]
lea ecx, [eax + 0xffff]
mov eax, dword [edx + 4]
lea edx, [eax + 0xffff]
sar ecx, 0x10
sar edx, 0x10
cmp ecx, edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x94], edx
je 0x4d20a1
mov ecx, dword [ebp + 4]
add ecx, 0xffff
sar ecx, 0x10
mov dword [esp + 0x30], ecx
mov ecx, dword [ebx + 4]
sub eax, ecx
cdq
push edx
push eax
push 0x10000
push 0
call fcn.0062e060
mov edi, eax
mov eax, dword [esp + 0x74]
mov eax, dword [eax]
mov ecx, edx
mov edx, dword [ebx]
push ecx
sub eax, edx
mov dword [esp + 0x44], edx
cdq
push edi
push edx
push eax
mov dword [esp + 0x2c], ecx
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x84], eax
mov eax, dword [ecx + 0x18]
sub eax, dword [ebx + 0x18]
mov ecx, dword [esp + 0x1c]
push ecx
cdq
push edi
push edx
push eax
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x7c], eax
mov eax, dword [edx + 0x1c]
sub eax, dword [ebx + 0x1c]
push ecx
cdq
push edi
push edx
push eax
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 4]
sub eax, dword [ebx + 4]
cdq
mov ecx, eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x1c], edx
cdq
mov edi, eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
push edx
push edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x64], edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x40]
mov ecx, dword [ebp]
cmp ecx, eax
mov dword [esp + 0x34], eax
je 0x4d20a1
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x54]
shl eax, 0x10
sub eax, dword [ebx + 4]
cdq
push edx
push eax
push ecx
push edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x3c]
mov edi, eax
mov eax, dword [esp + 0x7c]
add edi, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x3c]
cdq
push ecx
push edx
push eax
mov dword [esp + 0x68], edi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x3c]
mov ebx, dword [ebx + 0x1c]
push ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x84]
cdq
push ecx
push edx
push eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edx
mov dword [esp + 0x58], ebx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, ebx
mov dword [esp + 0x28], eax
mov eax, dword [ebp]
sub eax, dword [esp + 0x34]
cdq
push edx
push eax
push 0x10000
push 0
call fcn.0062e060
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
push edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ecx, eax
mov eax, dword [ebp + 0x18]
mov ebx, edx
cdq
sub eax, ecx
sbb edx, ebx
mov ecx, eax
mov eax, dword [esp + 0xc]
mov ebx, edx
cdq
sub ecx, eax
mov eax, dword [esp + 0x68]
sbb ebx, edx
mov edx, dword [esp + 0x6c]
push edx
push eax
push ebx
push ecx
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x68]
push edx
push eax
push ecx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ecx, eax
mov eax, dword [ebp + 0x1c]
mov ebx, edx
cdq
sub eax, ecx
sbb edx, ebx
mov ecx, eax
mov eax, dword [esp + 0x48]
mov ebx, edx
cdq
sub ecx, eax
mov eax, dword [esp + 0x68]
sbb ebx, edx
mov edx, dword [esp + 0x6c]
push edx
push eax
push ebx
push ecx
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov ecx, dword [esp + 0x44]
mov edx, ecx
imul edx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xa4]
lea edx, [eax + edx*2]
mov eax, dword [esp + 0x30]
sub eax, ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x10], eax
je 0x4d1b67
mov eax, dword [ebp]
sub eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
cdq
mov ebx, eax
mov eax, dword [esp + 0x1c]
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 + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x54], eax
cdq
push ecx
push edx
push eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov edx, dword [esp + 0x2c]
mov ecx, eax
mov eax, dword [edx]
mov edx, dword [esp + 0x34]
add ecx, dword [esp + 0x40]
cmp edx, eax
jge 0x4d1915
cmp dword [esp + 0x10], 0
jle 0x4d1b63
mov eax, dword [esp + 0x5c]
cdq
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x3c], edx
cdq
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x1c], edx
lea edx, [eax + eax]
add ecx, 0xffff
lea eax, [edi + 0xffff]
mov dword [esp + 0x40], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x44], eax
mov ebx, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
sub dword [esp + 0x10], 1
and ebx, 0xffff0000
mov eax, ebx
sub eax, edi
cdq
push edx
mov ebp, eax
push ebp
mov dword [esp + 0xa4], edx
mov edx, dword [esp + 0x40]
push ecx
push edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x9c]
push eax
push ebp
push ecx
push edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ebp, dword [esp + 0xc]
add eax, dword [esp + 0x28]
mov edx, dword [esp + 0x60]
and ebp, 0xffff0000
mov ecx, ebx
sub ebp, ebx
sar ecx, 0x10
sar ebp, 0x10
test ebp, ebp
lea edx, [edx + ecx*2]
mov dword [esp + 0x14], eax
mov dword [esp + 0x48], edx
jle 0x4d18d1
mov ecx, dword [esp + 0x4c]
shr eax, 0x10
imul eax, dword [esp + 0x88]
shr ecx, 0x10
add eax, ecx
sub ebp, 1
cmp eax, dword [esp + 0x8c]
jae 0x4d17ba
mov ecx, dword [esp + 0x90]
mov eax, dword [ecx + eax*4]
jmp 0x4d17bc
xor eax, eax
mov ecx, eax
mov edi, eax
movzx eax, al
imul eax, dword [esi + 0xc]
mov ebx, dword [esi]
and ecx, 0xff00
imul ebx, ebx, 0xff
imul ecx, dword [esi + 8]
and edi, 0xff0000
imul edi, dword [esi + 4]
and eax, 0xff00
and ecx, 0xff0000
and edi, 0xff0000ff
or ecx, edi
movzx edi, word [edx]
or ecx, eax
mov edx, edi
and edx, 0xf800
shl edx, 5
shr ecx, 8
mov eax, edi
and eax, 0x1f
or edx, eax
mov eax, ecx
and eax, 0xff00ff
and ecx, 0xff00
shr ebx, 8
imul eax, ebx
imul ecx, ebx
shr eax, 8
and eax, 0xff00ff
add edx, edx
add edx, edx
add edx, edx
and edi, 0x7e0
shr ecx, 8
or edx, 0x70007
add edx, eax
or edi, 0x18
and ecx, 0xff00
shl edi, 5
add ecx, edi
mov eax, edx
shr eax, 0x18
and eax, 1
imul eax, eax, 0xff0000
mov edi, edx
shr edi, 8
and edi, 1
imul edi, edi, 0xff
or eax, edi
or edx, eax
mov eax, ecx
shr eax, 0x10
and eax, 1
imul eax, eax, 0xff00
shr eax, 5
shr ecx, 5
or eax, ecx
mov ecx, edx
and eax, 0x7e0
shr ecx, 3
shr edx, 8
and ecx, 0x1f
or eax, ecx
and edx, 0xf800
or eax, edx
mov edx, dword [esp + 0x48]
mov word [edx], ax
mov eax, dword [esp + 0x5c]
add dword [esp + 0x4c], eax
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x68]
add edx, 2
test ebp, ebp
mov dword [esp + 0x48], edx
mov dword [esp + 0x14], eax
jg 0x4d178e
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x50]
add dword [esp + 0x44], eax
add dword [esp + 0xc], ecx
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x80]
add dword [esp + 0x60], edx
add dword [esp + 0x28], ecx
add edi, eax
mov eax, dword [esp + 0x7c]
add dword [esp + 0x24], eax
cmp dword [esp + 0x10], 0
mov dword [esp + 0x58], edi
jg 0x4d1703
jmp 0x4d1b63
jle 0x4d1b63
cmp dword [esp + 0x10], 0
jle 0x4d1b63
mov eax, dword [esp + 0x5c]
cdq
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x3c], edx
cdq
mov dword [esp + 0x1c], edx
lea edx, [edi + 0xffff]
add ecx, 0xffff
mov dword [esp + 0x18], eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x4c], ecx
mov ebx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x38]
sub dword [esp + 0x10], 1
and ebx, 0xffff0000
mov eax, ebx
sub eax, edi
cdq
push edx
mov ebp, eax
mov eax, dword [esp + 0x40]
push ebp
push eax
push ecx
mov dword [esp + 0xac], edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x24]
mov edx, dword [esp + 0x9c]
mov ecx, dword [esp + 0x18]
push edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
push ebp
push eax
push ecx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ebp, dword [esp + 0x44]
add eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x60]
and ebp, 0xffff0000
mov edx, ebx
sub ebp, ebx
sar edx, 0x10
sar ebp, 0x10
test ebp, ebp
lea edx, [ecx + edx*2]
mov dword [esp + 0x48], eax
mov dword [esp + 0x14], edx
jle 0x4d1b22
mov ecx, dword [esp + 0xc]
shr eax, 0x10
imul eax, dword [esp + 0x88]
shr ecx, 0x10
add eax, ecx
sub ebp, 1
cmp eax, dword [esp + 0x8c]
jae 0x4d1a0b
mov ecx, dword [esp + 0x90]
mov eax, dword [ecx + eax*4]
jmp 0x4d1a0d
xor eax, eax
mov ecx, eax
mov edi, eax
movzx eax, al
imul eax, dword [esi + 0xc]
mov ebx, dword [esi]
and ecx, 0xff00
imul ebx, ebx, 0xff
imul ecx, dword [esi + 8]
and edi, 0xff0000
imul edi, dword [esi + 4]
and eax, 0xff00
and ecx, 0xff0000
and edi, 0xff0000ff
or ecx, edi
movzx edi, word [edx]
or ecx, eax
mov edx, edi
and edx, 0xf800
shl edx, 5
shr ecx, 8
mov eax, edi
and eax, 0x1f
or edx, eax
mov eax, ecx
and eax, 0xff00ff
and ecx, 0xff00
shr ebx, 8
imul eax, ebx
imul ecx, ebx
shr eax, 8
and eax, 0xff00ff
add edx, edx
add edx, edx
add edx, edx
and edi, 0x7e0
shr ecx, 8
or edx, 0x70007
add edx, eax
or edi, 0x18
and ecx, 0xff00
shl edi, 5
add ecx, edi
mov eax, edx
shr eax, 0x18
and eax, 1
imul eax, eax, 0xff0000
mov edi, edx
shr edi, 8
and edi, 1
imul edi, edi, 0xff
or eax, edi
or edx, eax
mov eax, ecx
shr eax, 0x10
and eax, 1
imul eax, eax, 0xff00
shr eax, 5
shr ecx, 5
or eax, ecx
mov ecx, edx
and eax, 0x7e0
shr ecx, 3
shr edx, 8
and ecx, 0x1f
or eax, ecx
and edx, 0xf800
or eax, edx
mov edx, dword [esp + 0x14]
mov word [edx], ax
mov eax, dword [esp + 0x5c]
add dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
add eax, dword [esp + 0x68]
add edx, 2
test ebp, ebp
mov dword [esp + 0x14], edx
mov dword [esp + 0x48], eax
jg 0x4d19df
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x84]
add dword [esp + 0x44], eax
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x7c]
add dword [esp + 0x4c], ecx
add dword [esp + 0x24], edx
add edi, eax
mov eax, dword [esp + 0x78]
add eax, eax
add dword [esp + 0x60], eax
mov eax, dword [esp + 0x80]
add dword [esp + 0x28], eax
cmp dword [esp + 0x10], 0
mov dword [esp + 0x58], edi
jg 0x4d1954
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x94]
sub eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
je 0x4d20a1
mov ecx, dword [ebp + 4]
mov ebx, dword [esp + 0x74]
mov eax, dword [ebx + 4]
mov ebp, dword [ebp]
sub eax, ecx
cdq
push edx
push eax
push 0x10000
push 0
mov dword [esp + 0x60], ecx
call fcn.0062e060
mov ecx, eax
mov eax, edx
mov dword [esp + 0x94], eax
mov eax, dword [ebx]
sub eax, ebp
cdq
push edx
push eax
mov eax, dword [esp + 0x9c]
push eax
push ecx
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov ecx, eax
mov eax, dword [esp + 0x30]
shl eax, 0x10
sub eax, dword [esp + 0x50]
mov dword [esp + 0x48], ecx
imul ecx
mov cl, 0x10
call fcn.00639880
mov ecx, eax
mov eax, dword [esp + 0x34]
add ecx, ebp
cmp eax, ebp
jge 0x4d1e4a
cmp dword [esp + 0x10], 0
jle 0x4d20a1
mov eax, dword [esp + 0x5c]
cdq
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x3c], edx
cdq
add ecx, 0xffff
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], ecx
lea eax, [edx + edx]
lea ecx, [edi + 0xffff]
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], ecx
mov ebx, dword [esp + 0x30]
sub dword [esp + 0x10], 1
and ebx, 0xffff0000
mov eax, ebx
sub eax, edi
cdq
push edx
mov ebp, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0x40]
push ebp
push edx
push eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ecx, dword [esp + 0x9c]
add eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push ecx
push ebp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
push edx
push eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ebp, dword [esp + 0xc]
add eax, dword [esp + 0x28]
mov edx, dword [esp + 0x60]
and ebp, 0xffff0000
mov ecx, ebx
sub ebp, ebx
sar ecx, 0x10
sar ebp, 0x10
test ebp, ebp
lea edx, [edx + ecx*2]
mov dword [esp + 0x14], eax
mov dword [esp + 0x50], edx
jle 0x4d1e01
mov ecx, dword [esp + 0x34]
shr eax, 0x10
imul eax, dword [esp + 0x88]
shr ecx, 0x10
add eax, ecx
sub ebp, 1
cmp eax, dword [esp + 0x8c]
jae 0x4d1cea
mov ecx, dword [esp + 0x90]
mov eax, dword [ecx + eax*4]
jmp 0x4d1cec
xor eax, eax
mov ecx, eax
mov edi, eax
movzx eax, al
imul eax, dword [esi + 0xc]
mov ebx, dword [esi]
and ecx, 0xff00
imul ebx, ebx, 0xff
imul ecx, dword [esi + 8]
and edi, 0xff0000
imul edi, dword [esi + 4]
and eax, 0xff00
and ecx, 0xff0000
and edi, 0xff0000ff
or ecx, edi
movzx edi, word [edx]
or ecx, eax
mov edx, edi
and edx, 0xf800
shl edx, 5
shr ecx, 8
mov eax, edi
and eax, 0x1f
or edx, eax
mov eax, ecx
and eax, 0xff00ff
and ecx, 0xff00
shr ebx, 8
imul eax, ebx
imul ecx, ebx
shr eax, 8
and eax, 0xff00ff
add edx, edx
add edx, edx
add edx, edx
and edi, 0x7e0
shr ecx, 8
or edx, 0x70007
add edx, eax
or edi, 0x18
and ecx, 0xff00
shl edi, 5
add ecx, edi
mov eax, edx
shr eax, 0x18
and eax, 1
imul eax, eax, 0xff0000
mov edi, edx
shr edi, 8
and edi, 1
imul edi, edi, 0xff
or eax, edi
or edx, eax
mov eax, ecx
shr eax, 0x10
and eax, 1
imul eax, eax, 0xff00
shr eax, 5
shr ecx, 5
or eax, ecx
mov ecx, edx
and eax, 0x7e0
shr ecx, 3
shr edx, 8
and ecx, 0x1f
or eax, ecx
and edx, 0xf800
or eax, edx
mov edx, dword [esp + 0x50]
mov word [edx], ax
mov eax, dword [esp + 0x5c]
add dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x68]
add edx, 2
test ebp, ebp
mov dword [esp + 0x50], edx
mov dword [esp + 0x14], eax
jg 0x4d1cbe
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x48]
add dword [esp + 0x30], eax
add dword [esp + 0xc], ecx
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x80]
add dword [esp + 0x60], edx
add dword [esp + 0x28], ecx
add edi, eax
mov eax, dword [esp + 0x7c]
add dword [esp + 0x24], eax
cmp dword [esp + 0x10], 0
mov dword [esp + 0x58], edi
jg 0x4d1c33
pop edi
pop ebp
pop ebx
add esp, 0x94
ret
jle 0x4d20a1
cmp dword [esp + 0x10], 0
jle 0x4d20a1
mov eax, dword [esp + 0x5c]
cdq
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x3c], edx
cdq
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x18], eax
lea eax, [edx + edx]
lea edx, [edi + 0xffff]
add ecx, 0xffff
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0xc], ecx
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 0x38]
sub dword [esp + 0x10], 1
and ebx, 0xffff0000
mov eax, ebx
sub eax, edi
cdq
mov ebp, eax
mov eax, dword [esp + 0x3c]
push eax
push ecx
push edx
push ebp
mov dword [esp + 0xac], edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x9c]
push edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
push ebp
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ebp, dword [esp + 0x30]
add eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x60]
and ebp, 0xffff0000
mov edx, ebx
sub ebp, ebx
sar edx, 0x10
sar ebp, 0x10
test ebp, ebp
lea edx, [ecx + edx*2]
mov dword [esp + 0x14], eax
mov dword [esp + 0x50], edx
jle 0x4d2062
mov ecx, dword [esp + 0x34]
shr eax, 0x10
imul eax, dword [esp + 0x88]
shr ecx, 0x10
add eax, ecx
sub ebp, 1
cmp eax, dword [esp + 0x8c]
jae 0x4d1f4b
mov ecx, dword [esp + 0x90]
mov eax, dword [ecx + eax*4]
jmp 0x4d1f4d
xor eax, eax
mov ecx, eax
mov edi, eax
movzx eax, al
imul eax, dword [esi + 0xc]
mov ebx, dword [esi]
and ecx, 0xff00
imul ebx, ebx, 0xff
imul ecx, dword [esi + 8]
and edi, 0xff0000
imul edi, dword [esi + 4]
and eax, 0xff00
and ecx, 0xff0000
and edi, 0xff0000ff
or ecx, edi
movzx edi, word [edx]
or ecx, eax
mov edx, edi
and edx, 0xf800
shl edx, 5
shr ecx, 8
mov eax, edi
and eax, 0x1f
or edx, eax
mov eax, ecx
and eax, 0xff00ff
and ecx, 0xff00
shr ebx, 8
imul eax, ebx
imul ecx, ebx
shr eax, 8
and eax, 0xff00ff
add edx, edx
add edx, edx
add edx, edx
and edi, 0x7e0
shr ecx, 8
or edx, 0x70007
add edx, eax
or edi, 0x18
and ecx, 0xff00
shl edi, 5
add ecx, edi
mov eax, edx
shr eax, 0x18
and eax, 1
imul eax, eax, 0xff0000
mov edi, edx
shr edi, 8
and edi, 1
imul edi, edi, 0xff
or eax, edi
or edx, eax
mov eax, ecx
shr eax, 0x10
and eax, 1
imul eax, eax, 0xff00
shr eax, 5
shr ecx, 5
or eax, ecx
mov ecx, edx
and eax, 0x7e0
shr ecx, 3
shr edx, 8
and ecx, 0x1f
or eax, ecx
and edx, 0xf800
or eax, edx
mov edx, dword [esp + 0x50]
mov word [edx], ax
mov eax, dword [esp + 0x5c]
add dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x68]
add edx, 2
test ebp, ebp
mov dword [esp + 0x50], edx
mov dword [esp + 0x14], eax
jg 0x4d1f1f
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x48]
add dword [esp + 0x30], eax
add dword [esp + 0xc], ecx
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x80]
add dword [esp + 0x60], edx
add dword [esp + 0x28], ecx
add edi, eax
mov eax, dword [esp + 0x7c]
add dword [esp + 0x24], eax
cmp dword [esp + 0x10], 0
mov dword [esp + 0x58], edi
jg 0x4d1e94
pop edi
pop ebp
pop ebx
add esp, 0x94
ret