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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov edi, dword [esp + 0xa4]
mov eax, dword [esp + 0xa0]
mov edi, dword [edi]
cmp dword [eax], edi
je 0x95873b
mov dword [esp + 4], 1
lea ecx, [esp + 0x48]
mov dword [esp], eax
call fcn.008855a1
sub esp, 8
mov ebx, dword [esp + 0x48]
lea esi, [esi]
mov eax, dword [esp + 0xa4]
cmp dword [eax], ebx
je 0x95873b
mov eax, dword [esp + 0xa0]
mov edi, dword [ebx + 4]
mov eax, dword [eax]
mov esi, dword [eax + 4]
cmp edi, esi
mov edx, esi
cmovbe edx, edi
test edx, edx
je 0x9586c2
mov dword [esp + 8], edx
mov eax, dword [eax]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0086e9f9
test eax, eax
jne 0x9586c6
mov eax, edi
sub eax, esi
test eax, eax
js 0x958749
mov eax, dword [esp + 0x4c]
mov byte [esp + 4], 0
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x68]
mov dword [esp], eax
call fcn.0095d071
mov eax, dword [esp + 0x48]
lea ebx, [eax + 0x18]
mov dword [esp + 0x48], ebx
cmp ebx, dword [esp + 0x50]
jne 0x958681
mov eax, dword [esp + 0x54]
mov ebx, dword [eax + 4]
lea edx, [eax + 4]
mov dword [esp + 0x54], edx
lea eax, [ebx + 0x1f8]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x48], ebx
cmp dword [eax], ebx
jne 0x958690
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x70]
mov dword [esp + 0x68], eax
mov edx, dword [ebx]
lea eax, [ebx + 8]
cmp edx, eax
je 0x958ab9
mov dword [esp + 0x68], edx
mov edx, dword [ebx + 8]
mov dword [esp + 0x70], edx
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x58]
mov dword [esp + 0x6c], edx
mov dword [ebx], eax
lea eax, [esp + 0x48]
mov dword [ebx + 4], 0
mov byte [ebx + 8], 0
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.008855a1
sub esp, 8
mov esi, dword [esp + 0xa0]
mov eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
mov ecx, dword [esi]
mov esi, dword [esp + 0x58]
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x64]
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0xa0]
sub eax, dword [esi + 0xc]
sar eax, 2
sub eax, 1
lea edx, [eax + eax*4]
lea ebx, [eax + edx*4]
mov edx, ebp
sub edx, edi
sar edx, 3
imul eax, edx, 0xaaaaaaab
lea edx, [ebx + eax]
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
imul eax, eax, 0xaaaaaaab
add eax, edx
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x958980
nop
mov edi, dword [esp + 0x34]
mov eax, ebp
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x28]
sub eax, edi
sar ecx, 3
sar eax, 3
imul eax, eax, 0xaaaaaaab
mov dword [esp + 0x2c], eax
imul eax, ecx, 0xaaaaaaab
mov dword [esp + 0x30], eax
cmp edi, ebp
jne 0x958a01
mov eax, dword [esp + 0x20]
mov edi, 0x15
mov eax, dword [eax - 4]
mov dword [esp + 0x38], eax
lea ebx, [eax + 0x1f8]
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x28], ecx
jne 0x9589f1
mov eax, dword [esp + 0x24]
mov eax, dword [eax - 4]
mov dword [esp + 0x38], eax
lea esi, [eax + 0x1f8]
mov eax, 0x15
mov ecx, dword [esp + 0x1c]
cmp ecx, edi
cmovle edi, ecx
cmp edi, eax
cmovg edi, eax
sub ebx, 0x10
sub esi, 0x10
lea eax, [edi + edi*2]
shl eax, 3
mov edx, eax
sar edx, 3
imul ecx, edx, 0xaaaaaaab
mov dword [esp + 0x38], ecx
test eax, eax
jle 0x958935
mov dword [esp + 0x3c], edi
jmp 0x9588f4
cmp edx, esi
je 0x958a81
mov dword [esi - 8], ecx
mov edi, dword [esi]
mov dword [esi - 4], eax
mov eax, dword [ebx]
mov dword [esi], eax
test edx, edx
je 0x958a8b
mov dword [ebx - 8], edx
mov dword [ebx], edi
mov dword [ebx - 4], 0
mov eax, dword [ebx - 8]
sub esi, 0x18
sub ebx, 0x18
sub dword [esp + 0x38], 1
mov byte [eax], 0
je 0x958931
mov ecx, dword [ebx - 8]
mov edx, dword [esi - 8]
mov eax, dword [ebx - 4]
cmp ecx, ebx
jne 0x9588b9
test eax, eax
je 0x958924
cmp eax, 1
je 0x958a71
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
call fcn.0086e9f1
mov edx, dword [esi - 8]
mov eax, dword [ebx - 4]
mov dword [esi - 4], eax
mov byte [edx + eax], 0
jmp 0x9588da
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
sub ecx, edi
js 0x958a99
cmp ecx, 0x14
jg 0x958a11
imul eax, edi, 0xffffffe8
mov ecx, dword [esp + 0x30]
add ebp, eax
sub ecx, edi
js 0x958a50
cmp ecx, 0x14
jg 0x9589b1
imul eax, edi, 0xffffffe8
add dword [esp + 0x18], eax
sub dword [esp + 0x1c], edi
mov eax, dword [esp + 0x1c]
test eax, eax
jg 0x958811
mov eax, dword [esp + 0xa0]
mov ecx, dword [eax]
lea eax, [esp + 0x68]
mov dword [esp], eax
call fcn.009329c1
sub esp, 4
mov eax, dword [esp + 0x68]
lea edi, [esp + 0x70]
cmp eax, edi
je 0x9586f7
mov dword [esp], eax
call fcn.009676c1
jmp 0x9586f7
mov eax, 0x30c30c31
imul ecx
mov eax, ecx
sar eax, 0x1f
sar edx, 2
sub edx, eax
lea eax, [edx*4]
add dword [esp + 0x24], eax
mov esi, dword [esp + 0x24]
add eax, edx
lea eax, [edx + eax*4]
mov ebx, dword [esi]
sub ecx, eax
lea eax, [ecx + ecx*2]
mov dword [esp + 0x28], ebx
lea eax, [ebx + eax*8]
mov dword [esp + 0x18], eax
jmp 0x958967
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x18]
jmp 0x95887d
mov edi, dword [esp + 0x2c]
mov ebx, ebp
jmp 0x958859
mov eax, 0x30c30c31
imul ecx
mov eax, ecx
sar eax, 0x1f
sar edx, 2
sub edx, eax
lea eax, [edx*4]
add dword [esp + 0x20], eax
mov esi, dword [esp + 0x20]
add eax, edx
lea eax, [edx + eax*4]
mov esi, dword [esi]
sub ecx, eax
lea eax, [ecx + ecx*2]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x34], esi
lea ebp, [esi + eax*8]
sub ecx, edi
jns 0x95895b
mov ebx, ecx
mov eax, 0x30c30c31
not ebx
imul ebx
sar ebx, 0x1f
sar edx, 2
sub edx, ebx
not edx
jmp 0x9589c2
movzx eax, byte [ebx]
mov byte [edx], al
mov edx, dword [esi - 8]
mov eax, dword [ebx - 4]
jmp 0x958924
mov dword [esi - 8], ecx
mov dword [esi - 4], eax
mov eax, dword [ebx]
mov dword [esi], eax
mov dword [ebx - 8], ebx
jmp 0x9588da
mov ebx, ecx
mov eax, 0x30c30c31
not ebx
imul ebx
sar ebx, 0x1f
sar edx, 2
sub edx, ebx
not edx
jmp 0x958a22
mov edx, dword [ebx + 8]
mov dword [esp + 0x70], edx
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x74], edx
mov edx, dword [ebx + 0x10]
mov dword [esp + 0x78], edx
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x7c], edx
jmp 0x958769