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

Disassembly:
sub esp, 0x80
shr edx, 2
mov dword [esp + 0x2c], edx
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x3c], edx
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx]
push ebx
push ebp
mov dword [esp + 0x48], edx
mov edx, dword [eax + 4]
cmp edx, dword [eax + 0x24]
mov dword [esp + 0x4c], ecx
lea ecx, [eax + 0x20]
push esi
lea ebp, [eax + 0x40]
push edi
mov esi, eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x60], ebp
jle 0x4b91a5
mov esi, ecx
mov dword [esp + 0x2c], eax
mov ecx, eax
mov eax, dword [ecx + 4]
cmp eax, dword [ebp + 4]
jle 0x4b91bb
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x60], ecx
mov ebp, ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [esi + 4]
cmp edx, dword [ecx + 4]
jle 0x4b91cd
mov eax, esi
mov esi, ecx
mov dword [esp + 0x2c], 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 + 0x58], edx
mov dword [esp + 0x78], edi
je 0x4b9d24
mov ecx, dword [ecx + 4]
mov dword [esp + 0x70], ecx
add ecx, 0xffff
sar ecx, 0x10
mov dword [esp + 0x64], 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 + 0x48], ecx
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov dword [esp + 0x40], 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 + 0x44], 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 + 0x48], eax
mov eax, dword [esp + 0x70]
sub eax, dword [esi + 4]
cdq
mov ecx, eax
mov eax, dword [esp + 0x40]
mov edi, edx
push edi
cdq
push ecx
mov ebp, eax
push edx
push ebp
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], edi
mov dword [esp + 0x94], edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx]
cmp ecx, eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
je 0x4b9d24
mov eax, dword [esp + 0x58]
shl eax, 0x10
sub eax, dword [esi + 4]
cdq
mov ebx, edx
mov edx, dword [esp + 0x84]
push ebx
mov edi, eax
push edi
push edx
push ebp
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ecx, dword [esi + 0x18]
mov ebp, eax
mov eax, dword [esp + 0x44]
add ebp, dword [esp + 0x38]
cdq
push ebx
push edi
push edx
push eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edx
mov dword [esp + 0x6c], ecx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, dword [esp + 0x5c]
mov esi, dword [esi + 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x48]
cdq
push ebx
push edi
push edx
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x44], esi
call fcn.00630410
mov cl, 0x10
call fcn.00639880
add eax, esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x68]
cdq
push edx
push eax
push 0x10000
push 0
call fcn.0062e060
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x8c]
push edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x8c]
push eax
push ecx
push edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ecx, eax
mov esi, edx
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x18]
cdq
sub eax, ecx
sbb edx, esi
mov ecx, eax
mov eax, dword [esp + 0x5c]
mov esi, edx
cdq
sub ecx, eax
mov eax, dword [esp + 0x80]
sbb esi, edx
mov edx, dword [esp + 0x84]
push edx
push eax
push esi
push ecx
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x88]
push ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov esi, edx
mov edx, dword [esp + 0x2c]
mov ecx, eax
mov eax, dword [edx + 0x1c]
cdq
sub eax, ecx
sbb edx, esi
mov ecx, eax
mov eax, dword [esp + 0x34]
mov esi, edx
cdq
sub ecx, eax
mov eax, dword [esp + 0x80]
sbb esi, edx
mov edx, dword [esp + 0x84]
push edx
push eax
push esi
push ecx
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov ecx, dword [esp + 0x58]
mov edx, ecx
imul edx, dword [esp + 0x3c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x94]
lea edx, [eax + edx*4]
mov eax, dword [esp + 0x64]
sub eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
je 0x4b98ae
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x88]
cdq
mov esi, eax
mov eax, dword [esp + 0x8c]
push eax
push ecx
push 0x10000
push 0
mov ebp, edx
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 + 0x74], eax
cdq
push edi
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 + 0x68]
add ecx, dword [esp + 0x38]
cmp edx, eax
jge 0x4b96be
cmp dword [esp + 0x10], 0
jle 0x4b98aa
mov eax, dword [esp + 0x30]
cdq
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x84], edx
cdq
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x8c], edx
lea edx, [eax*4]
mov eax, dword [esp + 0x14]
add ecx, 0xffff
add eax, 0xffff
mov dword [esp + 0x38], edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], eax
mov esi, dword [esp + 0x58]
mov ecx, dword [esp + 0x84]
sub dword [esp + 0x10], 1
and esi, 0xffff0000
mov eax, esi
sub eax, dword [esp + 0x14]
push ecx
cdq
mov ebx, edx
mov edx, dword [esp + 0x84]
push edx
mov edi, eax
push ebx
push edi
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ecx, dword [esp + 0x88]
mov ebp, eax
mov eax, dword [esp + 0x8c]
add ebp, dword [esp + 0x24]
push eax
push ecx
push ebx
push edi
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ebx, dword [esp + 0x5c]
and ebx, 0xffff0000
mov ecx, edx
mov ecx, dword [esp + 0x18]
mov edx, eax
add edx, dword [esp + 0x28]
sub ebx, esi
mov eax, esi
sar eax, 0x10
sar ebx, 0x10
test ebx, ebx
mov dword [esp + 0x6c], edx
lea eax, [ecx + eax*4]
jle 0x4b9682
mov ecx, edx
shr ecx, 0x10
imul ecx, dword [esp + 0x4c]
mov esi, ebp
shr esi, 0x10
add ecx, esi
sub ebx, 1
cmp ecx, dword [esp + 0x50]
jae 0x4b95d8
mov esi, dword [esp + 0x54]
mov ecx, dword [esi + ecx*4]
jmp 0x4b95da
xor ecx, ecx
mov esi, ecx
shr esi, 0x18
cmp esi, 8
jbe 0x4b966b
mov edi, dword [eax]
mov edx, ecx
and ecx, 0xff00
imul ecx, esi
and edx, 0xff00ff
imul edx, esi
shr ecx, 8
shr edx, 8
and ecx, 0xff00
and edx, 0xff00ff
mov esi, edi
and esi, 0xff00ff
add esi, edx
and edi, 0xff00
add edi, ecx
mov edx, esi
shr edx, 8
and edx, 1
mov ecx, esi
imul edx, edx, 0xff
shr ecx, 0x18
and ecx, 1
imul ecx, ecx, 0xffff0000
or edx, ecx
mov ecx, edi
shr ecx, 0x10
and ecx, 1
neg ecx
shl ecx, 8
or edx, esi
or ecx, edi
and edx, 0xffff00ff
and ecx, 0xff00
or edx, ecx
or edx, 0xff000000
mov dword [eax], edx
mov edx, dword [esp + 0x6c]
add edx, dword [esp + 0x34]
add ebp, dword [esp + 0x30]
add eax, 4
test ebx, ebx
mov dword [esp + 0x6c], edx
jg 0x4b95b5
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x70]
add dword [esp + 0x14], eax
add dword [esp + 0x58], eax
add dword [esp + 0x5c], edx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
add dword [esp + 0x18], eax
add dword [esp + 0x24], ecx
add dword [esp + 0x28], edx
cmp dword [esp + 0x10], 0
jg 0x4b952a
jmp 0x4b98aa
jle 0x4b98aa
cmp dword [esp + 0x10], 0
jle 0x4b98aa
mov eax, dword [esp + 0x30]
cdq
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x84], edx
cdq
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x8c], edx
lea edx, [eax*4]
mov eax, dword [esp + 0x14]
add eax, 0xffff
add ecx, 0xffff
mov dword [esp + 0x38], edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], ecx
mov esi, dword [esp + 0x58]
mov ecx, dword [esp + 0x84]
sub dword [esp + 0x10], 1
and esi, 0xffff0000
mov eax, esi
sub eax, dword [esp + 0x14]
push ecx
cdq
mov ebx, edx
mov edx, dword [esp + 0x84]
push edx
mov edi, eax
push ebx
push edi
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ecx, dword [esp + 0x88]
mov ebp, eax
mov eax, dword [esp + 0x8c]
add ebp, dword [esp + 0x24]
push eax
push ecx
push ebx
push edi
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ebx, dword [esp + 0x5c]
and ebx, 0xffff0000
mov ecx, edx
mov ecx, dword [esp + 0x18]
mov edx, eax
add edx, dword [esp + 0x28]
sub ebx, esi
mov eax, esi
sar eax, 0x10
sar ebx, 0x10
test ebx, ebx
mov dword [esp + 0x6c], edx
lea eax, [ecx + eax*4]
jle 0x4b9873
mov ecx, edx
shr ecx, 0x10
imul ecx, dword [esp + 0x4c]
mov esi, ebp
shr esi, 0x10
add ecx, esi
sub ebx, 1
cmp ecx, dword [esp + 0x50]
jae 0x4b97c9
mov esi, dword [esp + 0x54]
mov ecx, dword [esi + ecx*4]
jmp 0x4b97cb
xor ecx, ecx
mov esi, ecx
shr esi, 0x18
cmp esi, 8
jbe 0x4b985c
mov edi, dword [eax]
mov edx, ecx
and ecx, 0xff00
imul ecx, esi
and edx, 0xff00ff
imul edx, esi
shr ecx, 8
shr edx, 8
and ecx, 0xff00
and edx, 0xff00ff
mov esi, edi
and esi, 0xff00ff
add esi, edx
and edi, 0xff00
add edi, ecx
mov edx, esi
shr edx, 8
and edx, 1
mov ecx, esi
imul edx, edx, 0xff
shr ecx, 0x18
and ecx, 1
imul ecx, ecx, 0xffff0000
or edx, ecx
mov ecx, edi
shr ecx, 0x10
and ecx, 1
neg ecx
shl ecx, 8
or edx, esi
or ecx, edi
and edx, 0xffff00ff
and ecx, 0xff00
or edx, ecx
or edx, 0xff000000
mov dword [eax], edx
mov edx, dword [esp + 0x6c]
add edx, dword [esp + 0x34]
add ebp, dword [esp + 0x30]
add eax, 4
test ebx, ebx
mov dword [esp + 0x6c], edx
jg 0x4b97a6
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x70]
add dword [esp + 0x14], eax
add dword [esp + 0x5c], eax
add dword [esp + 0x58], edx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
add dword [esp + 0x18], eax
add dword [esp + 0x24], ecx
add dword [esp + 0x28], edx
cmp dword [esp + 0x10], 0
jg 0x4b971b
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x64]
mov dword [esp + 0x10], eax
je 0x4b9d24
mov eax, dword [esp + 0x2c]
mov edi, dword [eax + 4]
mov esi, dword [eax]
mov ebx, dword [esp + 0x60]
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 + 0x78], eax
mov eax, dword [ebx]
sub eax, esi
cdq
push edx
push eax
mov eax, dword [esp + 0x80]
push eax
push ecx
call fcn.00630410
mov cl, 0x20
call fcn.00639880
mov ecx, eax
mov eax, dword [esp + 0x64]
shl eax, 0x10
sub eax, edi
imul ecx
mov dword [esp + 0x60], ecx
mov cl, 0x10
call fcn.00639880
mov ecx, eax
mov eax, dword [esp + 0x68]
add ecx, esi
cmp eax, esi
jge 0x4b9b35
cmp dword [esp + 0x10], 0
jle 0x4b9d24
mov eax, dword [esp + 0x30]
cdq
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x84], edx
cdq
add ecx, 0xffff
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x88], eax
mov dword [esp + 0x64], ecx
lea eax, [edx*4]
lea ecx, [ebp + 0xffff]
mov dword [esp + 0x38], eax
mov dword [esp + 0x68], ecx
mov esi, dword [esp + 0x68]
mov ecx, dword [esp + 0x80]
sub dword [esp + 0x10], 1
and esi, 0xffff0000
mov eax, esi
sub eax, ebp
cdq
mov ebx, eax
mov eax, dword [esp + 0x84]
push eax
push ecx
push edx
push ebx
mov dword [esp + 0x8c], edx
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x7c]
mov edi, eax
mov eax, dword [esp + 0x88]
add edi, dword [esp + 0x24]
push edx
push eax
push ecx
push ebx
mov dword [esp + 0x80], edi
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ebx, dword [esp + 0x64]
and ebx, 0xffff0000
mov ecx, edx
mov ecx, dword [esp + 0x18]
mov edx, eax
add edx, dword [esp + 0x28]
sub ebx, esi
mov eax, esi
sar eax, 0x10
sar ebx, 0x10
test ebx, ebx
mov dword [esp + 0x6c], edx
lea eax, [ecx + eax*4]
jle 0x4b9af5
lea ebx, [ebx]
mov ecx, edx
shr ecx, 0x10
imul ecx, dword [esp + 0x4c]
mov esi, edi
shr esi, 0x10
add ecx, esi
sub ebx, 1
cmp ecx, dword [esp + 0x50]
jae 0x4b9a43
mov esi, dword [esp + 0x54]
mov ecx, dword [esi + ecx*4]
jmp 0x4b9a45
xor ecx, ecx
mov esi, ecx
shr esi, 0x18
cmp esi, 8
jbe 0x4b9ada
mov edi, dword [eax]
mov edx, ecx
and ecx, 0xff00
imul ecx, esi
and edx, 0xff00ff
imul edx, esi
shr ecx, 8
shr edx, 8
and ecx, 0xff00
and edx, 0xff00ff
mov esi, edi
and esi, 0xff00ff
add esi, edx
and edi, 0xff00
add edi, ecx
mov edx, esi
shr edx, 8
and edx, 1
mov ecx, esi
imul edx, edx, 0xff
shr ecx, 0x18
and ecx, 1
imul ecx, ecx, 0xffff0000
or edx, ecx
mov ecx, edi
shr ecx, 0x10
and ecx, 1
neg ecx
shl ecx, 8
or edx, esi
or ecx, edi
mov edi, dword [esp + 0x70]
and edx, 0xffff00ff
and ecx, 0xff00
or edx, ecx
or edx, 0xff000000
mov dword [eax], edx
mov edx, dword [esp + 0x6c]
add edi, dword [esp + 0x30]
add edx, dword [esp + 0x34]
add eax, 4
test ebx, ebx
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], edx
jg 0x4b9a20
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x60]
add dword [esp + 0x68], eax
add dword [esp + 0x64], edx
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
add dword [esp + 0x24], ecx
add dword [esp + 0x28], edx
add ebp, eax
mov eax, dword [esp + 0x38]
add dword [esp + 0x18], eax
cmp dword [esp + 0x10], 0
jg 0x4b9981
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
jle 0x4b9d24
cmp dword [esp + 0x10], 0
jle 0x4b9d24
mov eax, dword [esp + 0x30]
cdq
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x84], edx
cdq
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x8c], edx
lea edx, [eax*4]
lea eax, [ebp + 0xffff]
add ecx, 0xffff
mov dword [esp + 0x38], edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], ecx
jmp 0x4b9b95
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x64]
mov ecx, dword [esp + 0x84]
sub dword [esp + 0x10], 1
and esi, 0xffff0000
mov eax, esi
sub eax, ebp
cdq
mov ebx, edx
mov edx, dword [esp + 0x80]
push ecx
push edx
mov edi, eax
push ebx
push edi
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ecx, dword [esp + 0x88]
mov ebp, eax
mov eax, dword [esp + 0x8c]
add ebp, dword [esp + 0x24]
push eax
push ecx
push ebx
push edi
call fcn.00630410
mov cl, 0x10
call fcn.00639880
mov ebx, dword [esp + 0x68]
and ebx, 0xffff0000
mov ecx, edx
mov ecx, dword [esp + 0x18]
mov edx, eax
add edx, dword [esp + 0x28]
sub ebx, esi
mov eax, esi
sar eax, 0x10
sar ebx, 0x10
test ebx, ebx
mov dword [esp + 0x70], edx
lea eax, [ecx + eax*4]
jle 0x4b9ced
mov edi, edi
mov ecx, edx
shr ecx, 0x10
imul ecx, dword [esp + 0x4c]
mov esi, ebp
shr esi, 0x10
add ecx, esi
sub ebx, 1
cmp ecx, dword [esp + 0x50]
jae 0x4b9c43
mov esi, dword [esp + 0x54]
mov ecx, dword [esi + ecx*4]
jmp 0x4b9c45
xor ecx, ecx
mov esi, ecx
shr esi, 0x18
cmp esi, 8
jbe 0x4b9cd6
mov edi, dword [eax]
mov edx, ecx
and ecx, 0xff00
imul ecx, esi
and edx, 0xff00ff
imul edx, esi
shr ecx, 8
shr edx, 8
and ecx, 0xff00
and edx, 0xff00ff
mov esi, edi
and esi, 0xff00ff
add esi, edx
and edi, 0xff00
add edi, ecx
mov edx, esi
shr edx, 8
and edx, 1
mov ecx, esi
imul edx, edx, 0xff
shr ecx, 0x18
and ecx, 1
imul ecx, ecx, 0xffff0000
or edx, ecx
mov ecx, edi
shr ecx, 0x10
and ecx, 1
neg ecx
shl ecx, 8
or edx, esi
or ecx, edi
and edx, 0xffff00ff
and ecx, 0xff00
or edx, ecx
or edx, 0xff000000
mov dword [eax], edx
mov edx, dword [esp + 0x70]
add edx, dword [esp + 0x34]
add ebp, dword [esp + 0x30]
add eax, 4
test ebx, ebx
mov dword [esp + 0x70], edx
jg 0x4b9c20
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x60]
add dword [esp + 0x14], eax
add dword [esp + 0x68], eax
add dword [esp + 0x64], edx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
add dword [esp + 0x18], eax
add dword [esp + 0x24], ecx
add dword [esp + 0x28], edx
cmp dword [esp + 0x10], 0
jg 0x4b9b91
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret