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

Disassembly:
sub esp, 0x90
shr edx, 2
mov dword [esp + 0x68], edx
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x74], edx
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx]
push ebx
mov dword [esp + 0x80], edx
mov edx, dword [eax + 4]
cmp edx, dword [eax + 0x24]
mov dword [esp + 0x7c], ecx
lea ecx, [eax + 0x20]
push ebp
lea ebx, [eax + 0x40]
push edi
mov edi, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x60], ebx
jle 0x4bd3c7
mov edi, ecx
mov dword [esp + 0x18], eax
mov ecx, eax
mov eax, dword [ecx + 4]
cmp eax, dword [ebx + 4]
jle 0x4bd3dd
mov dword [esp + 0x60], ecx
mov dword [esp + 0x18], ebx
mov ecx, ebx
mov ebx, dword [esp + 0x60]
mov edx, dword [edi + 4]
cmp edx, dword [ecx + 4]
jle 0x4bd3ef
mov eax, edi
mov edi, ecx
mov dword [esp + 0x18], eax
mov ecx, eax
mov eax, dword [edi + 4]
lea edx, [eax + 0xffff]
mov eax, dword [ebx + 4]
lea ebx, [eax + 0xffff]
sar edx, 0x10
sar ebx, 0x10
cmp edx, ebx
mov dword [esp + 0x48], edx
mov dword [esp + 0x98], ebx
je 0x4be033
mov ecx, dword [ecx + 4]
add ecx, 0xffff
sar ecx, 0x10
mov dword [esp + 0x34], ecx
mov ecx, dword [edi + 4]
sub eax, ecx
cdq
push edx
push eax
push 0x10000
push 0
call fcn.0062e060
mov ecx, dword [edi]
mov ebx, eax
mov eax, dword [esp + 0x60]
mov eax, dword [eax]
mov ebp, edx
push ebp
sub eax, ecx
cdq
push ebx
push edx
push eax
mov dword [esp + 0x54], ecx
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x78], eax
mov eax, dword [ecx + 0x18]
sub eax, dword [edi + 0x18]
push ebp
cdq
push ebx
push edx
push eax
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov edx, dword [esp + 0x60]
mov dword [esp + 0x7c], eax
mov eax, dword [edx + 0x1c]
sub eax, dword [edi + 0x1c]
push ebp
cdq
push ebx
push edx
push eax
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
sub eax, dword [edi + 4]
cdq
mov ecx, eax
mov eax, dword [esp + 0x78]
mov ebx, edx
cdq
push edx
push eax
push ebx
push ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x18]
cmp dword [ecx], eax
mov dword [esp + 0x38], eax
je 0x4be033
mov eax, dword [esp + 0x48]
shl eax, 0x10
sub eax, dword [edi + 4]
cdq
mov ebp, edx
mov edx, dword [esp + 0x28]
mov ebx, eax
mov eax, dword [esp + 0x24]
push edx
push eax
push ebp
push ebx
mov dword [esp + 0xa0], ebp
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x44]
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x7c]
cdq
push ebp
push ebx
push edx
push eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edx
mov dword [esp + 0x1c], ecx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0xc]
mov edi, dword [edi + 0x1c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x70]
cdq
push ebp
push ebx
push edx
push eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov edx, dword [esp + 0x18]
add eax, edi
mov dword [esp + 0x1c], eax
mov eax, dword [edx]
mov dword [esp + 0x4c], eax
sub eax, dword [esp + 0x38]
cdq
push edx
push eax
push 0x10000
push 0
call fcn.0062e060
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x5c]
push ecx
push edx
push eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ebp, edx
mov edx, dword [esp + 0x18]
mov ecx, eax
mov eax, dword [edx + 0x18]
cdq
sub eax, ecx
sbb edx, ebp
mov ecx, eax
mov eax, dword [esp + 0xc]
mov ebp, edx
cdq
sub ecx, eax
mov eax, dword [esp + 0x24]
sbb ebp, edx
mov edx, dword [esp + 0x28]
push edx
push eax
push ebp
push ecx
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x6c]
push edx
push eax
push ecx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ebp, edx
mov edx, dword [esp + 0x18]
mov ecx, eax
mov eax, dword [edx + 0x1c]
cdq
sub eax, ecx
sbb edx, ebp
mov ecx, eax
mov ebp, edx
mov eax, edi
cdq
sub ecx, eax
mov eax, dword [esp + 0x24]
sbb ebp, edx
mov edx, dword [esp + 0x28]
push edx
push eax
push ebp
push ecx
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov ecx, dword [esp + 0x48]
mov edx, ecx
imul edx, dword [esp + 0x74]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xa0]
lea edx, [eax + edx*4]
mov eax, dword [esp + 0x34]
sub eax, ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x10], eax
je 0x4bdb37
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
cdq
mov edi, eax
mov eax, dword [esp + 0x40]
push eax
push ecx
push 0x10000
push 0
mov ebp, edx
call fcn.0062e060
push edx
push eax
push ebp
push edi
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov ecx, dword [esp + 0x90]
push ecx
mov dword [esp + 0x58], eax
cdq
push ebx
push edx
push eax
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov edx, dword [esp + 0x18]
mov ecx, eax
mov eax, dword [edx]
mov edx, dword [esp + 0x38]
add ecx, dword [esp + 0x44]
cmp edx, eax
jge 0x4bd909
cmp dword [esp + 0x10], 0
jle 0x4bdb37
mov eax, dword [esp + 0x50]
cdq
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x28], edx
cdq
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x40], edx
lea edx, [eax*4]
mov eax, dword [esp + 0x14]
add ecx, 0xffff
add eax, 0xffff
mov dword [esp + 0x44], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x48], eax
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x28]
sub dword [esp + 0x10], 1
and edi, 0xffff0000
mov eax, edi
sub eax, dword [esp + 0x14]
push ecx
cdq
mov ebp, eax
mov eax, dword [esp + 0x28]
push eax
push edx
push ebp
mov dword [esp + 0xa0], edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push ecx
mov ebx, eax
mov eax, dword [esp + 0x94]
add ebx, dword [esp + 0x24]
push edx
push eax
push ebp
mov dword [esp + 0x3c], ebx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ecx, eax
mov eax, dword [esp + 0x30]
add ecx, dword [esp + 0x1c]
mov edx, edi
sar edx, 0x10
lea ebp, [eax + edx*4]
mov eax, dword [esp + 0xc]
and eax, 0xffff0000
sub eax, edi
sar eax, 0x10
test eax, eax
mov dword [esp + 0x4c], ecx
jle 0x4bd8cd
jmp 0x4bd7b5
mov ecx, dword [esp + 0x4c]
shr ecx, 0x10
imul ecx, dword [esp + 0x80]
mov edx, ebx
shr edx, 0x10
add ecx, edx
sub eax, 1
cmp ecx, dword [esp + 0x88]
jae 0x4bd7df
mov edx, dword [esp + 0x84]
mov edx, dword [edx + ecx*4]
jmp 0x4bd7e1
xor edx, edx
mov ecx, edx
shr ecx, 0x18
cmp ecx, 8
jbe 0x4bd8b2
mov edi, dword [esi]
imul edi, ecx
mov ecx, edx
movzx ebx, dl
imul ebx, dword [esi + 0xc]
and ecx, 0xff0000
imul ecx, dword [esi + 4]
and edx, 0xff00
imul edx, dword [esi + 8]
and ecx, 0xff0000ff
and edx, 0xff0000
and ebx, 0xff00
or ecx, ebx
or ecx, edx
mov ebx, dword [ebp]
shr ecx, 8
mov edx, ecx
and edx, 0xff00ff
and ecx, 0xff00
shr edi, 8
imul edx, edi
imul ecx, edi
shr edx, 8
and edx, 0xff00ff
shr ecx, 8
and ecx, 0xff00
mov edi, ebx
and edi, 0xff00ff
add edi, edx
and ebx, 0xff00
add ebx, ecx
mov ecx, edi
shr ecx, 8
and ecx, 1
mov edx, edi
imul ecx, ecx, 0xff
shr edx, 0x18
and edx, 1
imul edx, edx, 0xffff0000
or ecx, edx
mov edx, ebx
shr edx, 0x10
and edx, 1
neg edx
shl edx, 8
or ecx, edi
or edx, ebx
mov ebx, dword [esp + 0x2c]
and ecx, 0xffff00ff
and edx, 0xff00
or ecx, edx
or ecx, 0xff000000
mov dword [ebp], ecx
add ebx, dword [esp + 0x50]
mov ecx, dword [esp + 0x64]
add dword [esp + 0x4c], ecx
add ebp, 4
test eax, eax
mov dword [esp + 0x2c], ebx
jg 0x4bd7b1
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x54]
add dword [esp + 0x14], eax
add dword [esp + 0x48], eax
add dword [esp + 0xc], edx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x70]
add dword [esp + 0x30], eax
add dword [esp + 0x20], ecx
add dword [esp + 0x1c], edx
cmp dword [esp + 0x10], 0
jg 0x4bd723
jmp 0x4bdb37
jle 0x4bdb37
cmp dword [esp + 0x10], 0
jle 0x4bdb37
mov eax, dword [esp + 0x50]
cdq
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x28], edx
cdq
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
add eax, 0xffff
add ecx, 0xffff
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov edi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x28]
sub dword [esp + 0x10], 1
and edi, 0xffff0000
mov eax, edi
sub eax, dword [esp + 0x14]
push ecx
cdq
mov ebp, eax
mov eax, dword [esp + 0x28]
push eax
push edx
push ebp
mov dword [esp + 0xa0], edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push ecx
mov ebx, eax
mov eax, dword [esp + 0x94]
add ebx, dword [esp + 0x24]
push edx
push eax
push ebp
mov dword [esp + 0x3c], ebx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ecx, eax
mov eax, dword [esp + 0x30]
add ecx, dword [esp + 0x1c]
mov edx, edi
sar edx, 0x10
lea ebp, [eax + edx*4]
mov eax, dword [esp + 0x48]
and eax, 0xffff0000
sub eax, edi
sar eax, 0x10
test eax, eax
mov dword [esp + 0xc], ecx
jle 0x4bdafc
jmp 0x4bd9e4
mov ecx, dword [esp + 0xc]
shr ecx, 0x10
imul ecx, dword [esp + 0x80]
mov edx, ebx
shr edx, 0x10
add ecx, edx
sub eax, 1
cmp ecx, dword [esp + 0x88]
jae 0x4bda0e
mov edx, dword [esp + 0x84]
mov edx, dword [edx + ecx*4]
jmp 0x4bda10
xor edx, edx
mov ecx, edx
shr ecx, 0x18
cmp ecx, 8
jbe 0x4bdae1
mov edi, dword [esi]
imul edi, ecx
mov ecx, edx
movzx ebx, dl
imul ebx, dword [esi + 0xc]
and ecx, 0xff0000
imul ecx, dword [esi + 4]
and edx, 0xff00
imul edx, dword [esi + 8]
and ecx, 0xff0000ff
and edx, 0xff0000
and ebx, 0xff00
or ecx, ebx
or ecx, edx
mov ebx, dword [ebp]
shr ecx, 8
mov edx, ecx
and edx, 0xff00ff
and ecx, 0xff00
shr edi, 8
imul edx, edi
imul ecx, edi
shr edx, 8
and edx, 0xff00ff
shr ecx, 8
and ecx, 0xff00
mov edi, ebx
and edi, 0xff00ff
add edi, edx
and ebx, 0xff00
add ebx, ecx
mov ecx, edi
shr ecx, 8
and ecx, 1
mov edx, edi
imul ecx, ecx, 0xff
shr edx, 0x18
and edx, 1
imul edx, edx, 0xffff0000
or ecx, edx
mov edx, ebx
shr edx, 0x10
and edx, 1
neg edx
shl edx, 8
or ecx, edi
or edx, ebx
mov ebx, dword [esp + 0x2c]
and ecx, 0xffff00ff
and edx, 0xff00
or ecx, edx
or ecx, 0xff000000
mov dword [ebp], ecx
add ebx, dword [esp + 0x50]
mov ecx, dword [esp + 0x64]
add dword [esp + 0xc], ecx
add ebp, 4
test eax, eax
mov dword [esp + 0x2c], ebx
jg 0x4bd9e0
mov eax, dword [esp + 0x78]
add dword [esp + 0x14], eax
add dword [esp + 0x48], eax
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x70]
add dword [esp + 0x4c], edx
add dword [esp + 0x1c], ecx
add eax, eax
add eax, eax
add dword [esp + 0x30], eax
mov eax, dword [esp + 0x7c]
add dword [esp + 0x20], eax
cmp dword [esp + 0x10], 0
jg 0x4bd94b
mov eax, dword [esp + 0x98]
sub eax, dword [esp + 0x34]
mov dword [esp + 0x10], eax
je 0x4be033
mov eax, dword [esp + 0x18]
mov ebx, dword [eax + 4]
mov edi, dword [eax]
mov ebp, dword [esp + 0x60]
mov eax, dword [ebp + 4]
sub eax, ebx
cdq
push edx
push eax
push 0x10000
push 0
call fcn.0062e060
mov ecx, eax
mov eax, edx
mov dword [esp + 0x98], eax
mov eax, dword [ebp]
sub eax, edi
cdq
push edx
push eax
mov eax, dword [esp + 0xa0]
push eax
push ecx
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov ecx, eax
mov eax, dword [esp + 0x34]
shl eax, 0x10
sub eax, ebx
imul ecx
mov dword [esp + 0x2c], ecx
mov cl, 0x10
call fcn.00639880
mov ecx, eax
mov eax, dword [esp + 0x38]
add ecx, edi
cmp eax, edi
jge 0x4bddfd
cmp dword [esp + 0x10], 0
jle 0x4be033
mov eax, dword [esp + 0x50]
cdq
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x28], edx
cdq
add ecx, 0xffff
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x3c], eax
lea eax, [edx*4]
add ecx, 0xffff
mov dword [esp + 0x44], eax
mov dword [esp + 0x34], ecx
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
sub dword [esp + 0x10], 1
and edi, 0xffff0000
mov eax, edi
sub eax, dword [esp + 0x14]
cdq
mov ebp, eax
mov eax, dword [esp + 0x28]
push eax
push ecx
push edx
push ebp
mov dword [esp + 0xa0], edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x90]
mov ebx, eax
mov eax, dword [esp + 0x3c]
add ebx, dword [esp + 0x20]
push edx
push eax
push ecx
push ebp
mov dword [esp + 0x64], ebx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ecx, eax
mov eax, dword [esp + 0x30]
add ecx, dword [esp + 0x1c]
mov edx, edi
sar edx, 0x10
lea ebp, [eax + edx*4]
mov eax, dword [esp + 0xc]
and eax, 0xffff0000
sub eax, edi
sar eax, 0x10
test eax, eax
mov dword [esp + 0x38], ecx
jle 0x4bddbc
jmp 0x4bdca4
mov ecx, dword [esp + 0x38]
shr ecx, 0x10
imul ecx, dword [esp + 0x80]
mov edx, ebx
shr edx, 0x10
add ecx, edx
sub eax, 1
cmp ecx, dword [esp + 0x88]
jae 0x4bdcce
mov edx, dword [esp + 0x84]
mov edx, dword [edx + ecx*4]
jmp 0x4bdcd0
xor edx, edx
mov ecx, edx
shr ecx, 0x18
cmp ecx, 8
jbe 0x4bdda1
mov edi, dword [esi]
imul edi, ecx
mov ecx, edx
movzx ebx, dl
imul ebx, dword [esi + 0xc]
and ecx, 0xff0000
imul ecx, dword [esi + 4]
and edx, 0xff00
imul edx, dword [esi + 8]
and ecx, 0xff0000ff
and edx, 0xff0000
and ebx, 0xff00
or ecx, ebx
or ecx, edx
mov ebx, dword [ebp]
shr ecx, 8
mov edx, ecx
and edx, 0xff00ff
and ecx, 0xff00
shr edi, 8
imul edx, edi
imul ecx, edi
shr edx, 8
and edx, 0xff00ff
shr ecx, 8
and ecx, 0xff00
mov edi, ebx
and edi, 0xff00ff
add edi, edx
and ebx, 0xff00
add ebx, ecx
mov ecx, edi
shr ecx, 8
and ecx, 1
mov edx, edi
imul ecx, ecx, 0xff
shr edx, 0x18
and edx, 1
imul edx, edx, 0xffff0000
or ecx, edx
mov edx, ebx
shr edx, 0x10
and edx, 1
neg edx
shl edx, 8
or ecx, edi
or edx, ebx
mov ebx, dword [esp + 0x54]
and ecx, 0xffff00ff
and edx, 0xff00
or ecx, edx
or ecx, 0xff000000
mov dword [ebp], ecx
add ebx, dword [esp + 0x50]
mov ecx, dword [esp + 0x64]
add dword [esp + 0x38], ecx
add ebp, 4
test eax, eax
mov dword [esp + 0x54], ebx
jg 0x4bdca0
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x2c]
add dword [esp + 0x14], eax
add dword [esp + 0x34], eax
add dword [esp + 0xc], edx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x70]
add dword [esp + 0x30], eax
add dword [esp + 0x20], ecx
add dword [esp + 0x1c], edx
cmp dword [esp + 0x10], 0
jg 0x4bdc09
pop edi
pop ebp
pop ebx
add esp, 0x90
ret
jle 0x4be033
cmp dword [esp + 0x10], 0
jle 0x4be033
mov eax, dword [esp + 0x50]
cdq
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x28], edx
cdq
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x40], edx
lea edx, [eax*4]
mov eax, dword [esp + 0x14]
add eax, 0xffff
add ecx, 0xffff
mov dword [esp + 0x44], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0xc], ecx
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x28]
sub dword [esp + 0x10], 1
and edi, 0xffff0000
mov eax, edi
sub eax, dword [esp + 0x14]
push ecx
cdq
mov ebp, eax
mov eax, dword [esp + 0x28]
push eax
push edx
push ebp
mov dword [esp + 0xa0], edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push ecx
mov ebx, eax
mov eax, dword [esp + 0x94]
add ebx, dword [esp + 0x24]
push edx
push eax
push ebp
mov dword [esp + 0x64], ebx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ecx, eax
mov eax, dword [esp + 0x30]
add ecx, dword [esp + 0x1c]
mov edx, edi
sar edx, 0x10
lea ebp, [eax + edx*4]
mov eax, dword [esp + 0x34]
and eax, 0xffff0000
sub eax, edi
sar eax, 0x10
test eax, eax
mov dword [esp + 0x38], ecx
jle 0x4bdffc
jmp 0x4bdee4
mov ecx, dword [esp + 0x38]
shr ecx, 0x10
imul ecx, dword [esp + 0x80]
mov edx, ebx
shr edx, 0x10
add ecx, edx
sub eax, 1
cmp ecx, dword [esp + 0x88]
jae 0x4bdf0e
mov edx, dword [esp + 0x84]
mov edx, dword [edx + ecx*4]
jmp 0x4bdf10
xor edx, edx
mov ecx, edx
shr ecx, 0x18
cmp ecx, 8
jbe 0x4bdfe1
mov edi, dword [esi]
imul edi, ecx
mov ecx, edx
movzx ebx, dl
imul ebx, dword [esi + 0xc]
and ecx, 0xff0000
imul ecx, dword [esi + 4]
and edx, 0xff00
imul edx, dword [esi + 8]
and ecx, 0xff0000ff
and edx, 0xff0000
and ebx, 0xff00
or ecx, ebx
or ecx, edx
mov ebx, dword [ebp]
shr ecx, 8
mov edx, ecx
and edx, 0xff00ff
and ecx, 0xff00
shr edi, 8
imul edx, edi
imul ecx, edi
shr edx, 8
and edx, 0xff00ff
shr ecx, 8
and ecx, 0xff00
mov edi, ebx
and edi, 0xff00ff
add edi, edx
and ebx, 0xff00
add ebx, ecx
mov ecx, edi
shr ecx, 8
and ecx, 1
mov edx, edi
imul ecx, ecx, 0xff
shr edx, 0x18
and edx, 1
imul edx, edx, 0xffff0000
or ecx, edx
mov edx, ebx
shr edx, 0x10
and edx, 1
neg edx
shl edx, 8
or ecx, edi
or edx, ebx
mov ebx, dword [esp + 0x54]
and ecx, 0xffff00ff
and edx, 0xff00
or ecx, edx
or ecx, 0xff000000
mov dword [ebp], ecx
add ebx, dword [esp + 0x50]
mov ecx, dword [esp + 0x64]
add dword [esp + 0x38], ecx
add ebp, 4
test eax, eax
mov dword [esp + 0x54], ebx
jg 0x4bdee0
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x2c]
add dword [esp + 0x14], eax
add dword [esp + 0x34], eax
add dword [esp + 0xc], edx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x70]
add dword [esp + 0x30], eax
add dword [esp + 0x20], ecx
add dword [esp + 0x1c], edx
cmp dword [esp + 0x10], 0
jg 0x4bde4e
pop edi
pop ebp
pop ebx
add esp, 0x90
ret