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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0xa8]
mov ecx, dword [esp + 0xac]
mov edi, dword [esp + 0xb0]
mov ebx, dword [esp + 0xa4]
mov esi, dword [esp + 0xd0]
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], edx
mov eax, dword [esp + 0xb4]
mov edx, dword [esp + 0xb8]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x7c], edi
mov ecx, dword [esp + 0xbc]
mov edi, dword [esp + 0xc0]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0xc8]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x6c], edi
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0x68], eax
mov edi, dword [esp + 0xd4]
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x64], edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edi
xor eax, eax
cmp ebx, dword [esp + 0x84]
sete al
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0xdc]
test ecx, ecx
je 0x658d8193
xor ebp, ebp
cmp ebp, dword [esp + 0x78]
jge 0x658d8185
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x2c], 0
mov edi, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x28], 0
sub eax, dword [esp + 0x60]
dec edx
lea ecx, [ecx*4 + 4]
shl edi, 2
mov dword [esp + 0x34], edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], edi
xor edi, edi
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
add eax, edi
mov dword [edx + ebp*4], eax
mov eax, dword [esp + 0x68]
add eax, edi
mov dword [ecx + ebp*4], eax
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x60]
mov dword [esp + 8], eax
mov eax, dword [edx + ebp*4]
mov dword [esp], eax
call fcn.658d0a08
add ebx, dword [esp + 0x40]
cmp dword [esp + 0x3c], 0xffffffff
je 0x658d8179
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x40]
mov ecx, dword [edx + ebp*4]
lea edx, [eax + ecx]
mov eax, dword [esp + 0x3c]
inc eax
nop
mov dword [edx], 0
add edx, 4
dec eax
jne 0x658d7b38
cmp ebp, dword [esp + 0x34]
je 0x658d816b
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x64]
mov dword [esp], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
call fcn.658d6528
mov edx, dword [esp + 0x54]
test edx, edx
je 0x658d80cb
add dword [esp + 0x2c], esi
add dword [esp + 0x28], esi
inc ebp
add edi, dword [esp + 0x44]
cmp ebp, dword [esp + 0x78]
jl 0x658d7ae4
mov eax, dword [esp + 0x54]
test eax, eax
je 0x658d807c
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x58]
mov dword [esp + 0x10], eax
lea eax, [esi + esi]
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], edi
lea eax, [ecx + edx*4]
mov dword [esp + 8], eax
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.658d6928
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x64]
mov edi, dword [esp + 0x74]
test eax, eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x74]
cmove eax, dword [esp + 0x70]
mov dword [esp + 8], ecx
mov dword [esp], edi
xor ebp, ebp
mov dword [esp + 4], eax
call fcn.658d7098
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x64]
mov dword [esp], edi
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
lea eax, [esi + esi]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
call fcn.658d7548
cmp ebp, dword [esp + 0x78]
jl 0x658d803b
cmp dword [esp + 0x64], 0xffffffff
je 0x658d7c64
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x58]
inc eax
lea esi, [esi]
mov dword [edx], 0
add edx, 4
dec eax
jne 0x658d7c58
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
imul eax, dword [esp + 0x34]
lea eax, [ecx + eax + 1]
test eax, eax
mov dword [esp + 0x50], eax
je 0x658d7c94
mov edx, dword [esp + 0x68]
lea esi, [esi]
mov dword [edx], 0
add edx, 4
dec eax
jne 0x658d7c88
mov ebp, dword [esp + 0x34]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x54], 0
mov edi, dword [esp + 0x64]
imul eax, ebp
add edi, eax
mov dword [esp + 0x48], eax
test ebp, ebp
mov dword [esp + 0x4c], edi
js 0x658d7e45
mov eax, dword [esp + 0x64]
inc eax
mov dword [esp + 0x30], eax
mov esi, esi
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x68]
mov edi, dword [esp + 0x74]
sub eax, ebp
lea esi, [ecx + edx*4]
mov ecx, dword [esp + 0x30]
cdq
idiv dword [esp + 0x78]
mov dword [esp + 0xc], ecx
mov eax, dword [edi + edx*4]
mov dword [esp + 0x38], edx
mov dword [esp], esi
mov dword [esp + 4], esi
mov dword [esp + 8], eax
call fcn.658d076e
test eax, eax
je 0x658d7d52
mov eax, dword [esp + 0x64]
lea edx, [esi + eax*4]
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
sub eax, dword [esp + 0x64]
mov ecx, dword [edx + 4]
lea ebx, [edx + 4]
inc ecx
dec eax
mov dword [edx + 4], ecx
cmp ecx, 1
jae 0x658d8034
mov edi, 1
mov edx, 1
cmp edi, eax
jge 0x658d7d4e
mov ecx, dword [ebx + edx*4]
inc ecx
mov dword [ebx + edx*4], ecx
inc edx
test ecx, ecx
jne 0x658d8034
cmp edx, eax
jl 0x658d7d3a
add dword [esp + 0x54], edi
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x58]
lea eax, [ebp + 1]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x20], 0
mov dword [ecx + edx*8], eax
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x74]
test edx, edx
mov ebx, dword [eax + edi*4]
js 0x658d7d90
mov edi, dword [esp + 0x58]
mov eax, dword [ebx + edx*4]
mov ecx, dword [edi + edx*4]
cmp eax, ecx
jne 0x658d801f
dec edx
jns 0x658d7d7b
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x658d7e32
mov edx, dword [esi]
mov ebx, dword [esp + 0x50]
sub ebx, dword [esp + 0x48]
lea eax, [edx - 1]
cmp edx, 1
mov dword [esi], eax
jae 0x658d8018
mov edi, 1
mov ecx, 1
cmp edi, ebx
jge 0x658d7dde
lea esi, [esi]
mov edx, dword [esi + ecx*4]
lea eax, [edx - 1]
mov dword [esi + ecx*4], eax
inc ecx
test edx, edx
jne 0x658d8018
cmp ecx, ebx
jl 0x658d7dc8
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x68]
mov esi, dword [esp + 0x50]
sub dword [esp + 0x54], edi
lea ebx, [ecx + edx*4]
sub esi, edx
mov edx, dword [ebx]
lea eax, [edx - 1]
cmp edx, 1
mov dword [ebx], eax
jae 0x658d8011
mov edi, 1
mov ecx, 1
cmp edi, esi
jge 0x658d7e2e
lea esi, [esi]
mov edx, dword [ebx + ecx*4]
lea eax, [edx - 1]
mov dword [ebx + ecx*4], eax
inc ecx
test edx, edx
jne 0x658d8011
cmp ecx, esi
jl 0x658d7e18
sub dword [esp + 0x54], edi
mov edi, dword [esp + 0x60]
sub dword [esp + 0x48], edi
sub dword [esp + 0x4c], edi
dec ebp
jns 0x658d7cc8
cmp dword [esp + 0x54], 0xffffffff
je 0x658d7f5b
cmp dword [esp + 0x54], 1
je 0x658d7e98
mov edi, dword [esp + 0x80]
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x88]
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], ecx
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa0], edx
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.658d77e8
mov edx, dword [esp + 0x80]
add edx, edx
cmp dword [esp + 0x50], edx
jl 0x658d7efd
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x68]
mov esi, edx
mov eax, dword [esp + 0x80]
lea ebx, [edi + ecx*4]
shl eax, 3
sub ebx, eax
mov edx, dword [esp + 0x54]
add edx, dword [ebx]
cmp edx, dword [esp + 0x54]
mov dword [ebx], edx
jae 0x658d7ef9
mov eax, 1
mov ecx, 1
cmp eax, esi
jge 0x658d7eec
mov edx, dword [ebx + ecx*4]
inc edx
mov dword [ebx + ecx*4], edx
inc ecx
test edx, edx
jne 0x658d7ef9
cmp ecx, esi
jl 0x658d7edc
test eax, eax
mov dword [esp + 0x54], eax
jne 0x658d7ec0
jmp 0x658d7e57
xor eax, eax
jmp 0x658d7eec
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x68]
lea ebx, [edx + eax*4]
mov eax, dword [esp + 0x80]
shl eax, 2
sub ebx, eax
mov edx, dword [ebx]
mov eax, edx
sub eax, dword [esp + 0x54]
cmp edx, dword [esp + 0x54]
mov dword [ebx], eax
jae 0x658d7e57
cmp dword [esp + 0x80], 1
mov ecx, 1
jle 0x658d7e57
mov edx, dword [ebx + ecx*4]
lea eax, [edx - 1]
mov dword [ebx + ecx*4], eax
inc ecx
test edx, edx
jne 0x658d7e57
cmp ecx, dword [esp + 0x80]
jl 0x658d7f3b
jmp 0x658d7e57
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x68]
lea ecx, [edx + eax*4]
mov eax, dword [esp + 0x80]
shl eax, 2
sub ecx, eax
mov eax, dword [ecx]
inc eax
cmp eax, 1
mov dword [ecx], eax
jae 0x658d800d
mov ebx, 1
mov edx, 1
cmp ebx, dword [esp + 0x80]
jge 0x658d7fa8
mov eax, dword [ecx + edx*4]
inc eax
mov dword [ecx + edx*4], eax
inc edx
test eax, eax
jne 0x658d800d
cmp edx, dword [esp + 0x80]
jl 0x658d7f93
test ebx, ebx
je 0x658d7e57
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x68]
mov eax, dword [esp + 0x80]
mov esi, dword [esp + 0x80]
lea edx, [edi + ecx*4]
shl eax, 2
inc esi
sub edx, eax
mov ecx, dword [edx - 4]
lea ebx, [edx - 4]
lea eax, [ecx - 1]
cmp ecx, 1
mov dword [edx - 4], eax
jae 0x658d7ffc
cmp esi, 1
mov edx, 1
jle 0x658d7ffc
mov ecx, dword [ebx + edx*4]
lea eax, [ecx - 1]
mov dword [ebx + edx*4], eax
inc edx
test ecx, ecx
jne 0x658d7ffc
cmp edx, esi
jl 0x658d7fea
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x68]
dec dword [edx + eax*4 - 4]
jmp 0x658d7e57
xor ebx, ebx
jmp 0x658d7fa8
xor edi, edi
jmp 0x658d7e2e
xor edi, edi
jmp 0x658d7dde
cmp eax, ecx
seta al
movzx eax, al
lea eax, [eax + eax - 1]
mov dword [esp + 0x20], eax
jmp 0x658d7d90
xor edi, edi
jmp 0x658d7d4e
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 0x58]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x78]
sub eax, ebp
cdq
idiv dword [esp + 0x78]
imul edx, esi
add edx, dword [esp + 0x7c]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x74]
mov eax, dword [edx + ebp*4]
inc ebp
mov dword [esp], eax
call fcn.658d7788
cmp ebp, dword [esp + 0x78]
jl 0x658d803b
jmp 0x658d7c41
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x7c]
lea eax, [esi + esi]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x78]
lea eax, [edx + edi*4]
mov edi, dword [esp + 0x70]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x74]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.658d6ba8
jmp 0x658d7bdf
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x84]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x70]
mov eax, dword [edx + ebp*4]
mov dword [esp], eax
call fcn.658d0a08
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
sub ecx, dword [esp + 0x60]
shl edx, 2
add dword [esp + 0x84], edx
mov dword [esp + 0x24], ecx
inc ecx
je 0x658d8162
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + ebp*4]
mov eax, dword [esp + 0x24]
lea edx, [edx + ecx]
inc eax
mov dword [edx], 0
add edx, 4
dec eax
jne 0x658d8119
cmp ebp, dword [esp + 0x34]
je 0x658d8150
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x64]
mov dword [esp], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
call fcn.658d6528
jmp 0x658d7b7a
mov edx, dword [esp + 0x84]
mov eax, dword [edx]
mov edx, dword [esp + 0x60]
mov dword [ecx + edx*4], eax
jmp 0x658d812b
mov edx, dword [esp + 0x70]
mov ecx, dword [edx + ebp*4]
jmp 0x658d8125
mov eax, dword [ebx]
mov edx, dword [esp + 0x60]
mov dword [ecx + edx*4], eax
jmp 0x658d7b4e
mov edx, dword [esp + 0x74]
mov ecx, dword [edx + ebp*4]
jmp 0x658d7b44
mov ecx, dword [esp + 0x78]
dec ecx
mov dword [esp + 0x34], ecx
jmp 0x658d7b91
mov edx, dword [esp + 0x78]
dec edx
mov dword [esp + 0x34], edx
jmp 0x658d7b91