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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xc0
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
movaps xmmword [esp + 0xa0], xmm0
movaps xmmword [esp + 0x90], xmm0
test eax, eax
je 0x65164b
nop word cs:[eax + eax]
movzx edx, word [ecx]
inc word [esp + edx*2 + 0x90]
add ecx, 2
dec eax
jne 0x651620
mov ax, word [esp + 0xae]
mov ecx, dword [esi]
mov edi, 0xf
test ax, ax
jne 0x65174d
jmp 0x65164d
mov ecx, dword [esi]
cmp word [esp + 0xac], 0
je 0x651662
mov edi, 0xe
jmp 0x65174b
cmp word [esp + 0xaa], 0
je 0x651677
mov edi, 0xd
jmp 0x65174b
cmp word [esp + 0xa8], 0
je 0x65168c
mov edi, 0xc
jmp 0x65174b
cmp word [esp + 0xa6], 0
je 0x6516a1
mov edi, 0xb
jmp 0x65174b
cmp word [esp + 0xa4], 0
je 0x6516b6
mov edi, 0xa
jmp 0x65174b
cmp word [esp + 0xa2], 0
je 0x6516cb
mov edi, 9
jmp 0x65174b
cmp word [esp + 0xa0], 0
je 0x6516dd
mov edi, 8
jmp 0x65174b
cmp word [esp + 0x9e], 0
je 0x6516ef
mov edi, 7
jmp 0x65174b
cmp word [esp + 0x9c], 0
je 0x651701
mov edi, 6
jmp 0x65174b
cmp word [esp + 0x9a], 0
je 0x651713
mov edi, 5
jmp 0x65174b
cmp word [esp + 0x98], 0
je 0x651725
mov edi, 4
jmp 0x65174b
cmp word [esp + 0x96], 0
je 0x651737
mov edi, 3
jmp 0x65174b
cmp word [esp + 0x94], 0
je 0x651d19
mov edi, 2
xor eax, eax
mov dword [esp + 0x6c], eax
cmp ecx, edi
cmova ecx, edi
mov eax, 1
nop dword [eax + eax]
cmp word [esp + eax*2 + 0x90], 0
jne 0x651770
inc eax
cmp eax, edi
jb 0x651760
mov dword [esp + 0x5c], edi
cmp ecx, eax
cmovb ecx, eax
mov dword [esp + 0x60], ecx
movzx ecx, word [esp + 0x92]
mov esi, 2
sub esi, ecx
mov edx, 0xffffffff
js 0x651d0f
add esi, esi
movzx ebx, word [esp + 0x94]
mov dword [esp + 0x68], ebx
sub esi, ebx
js 0x651d0f
add esi, esi
movzx ebx, word [esp + 0x96]
sub esi, ebx
js 0x651d0f
mov dword [esp + 0x64], ebx
add esi, esi
movzx ebx, word [esp + 0x98]
mov dword [esp + 0x58], ebx
sub esi, ebx
js 0x651d0f
add esi, esi
movzx ebx, word [esp + 0x9a]
sub esi, ebx
js 0x651d0f
mov dword [esp + 0x54], ebx
add esi, esi
movzx ebx, word [esp + 0x9c]
mov dword [esp + 0x50], ebx
sub esi, ebx
js 0x651d0f
add esi, esi
movzx ebx, word [esp + 0x9e]
sub esi, ebx
js 0x651d0f
mov dword [esp + 0x4c], ebx
add esi, esi
movzx ebx, word [esp + 0xa0]
mov dword [esp + 0x48], ebx
sub esi, ebx
js 0x651d0f
add esi, esi
movzx ebx, word [esp + 0xa2]
sub esi, ebx
js 0x651d0f
mov dword [esp + 0x44], ebx
add esi, esi
movzx ebx, word [esp + 0xa4]
mov dword [esp + 0x40], ebx
sub esi, ebx
js 0x651d0f
add esi, esi
movzx ebx, word [esp + 0xa6]
sub esi, ebx
js 0x651d0f
mov dword [esp + 0x3c], ebx
add esi, esi
movzx ebx, word [esp + 0xa8]
mov dword [esp + 0x38], ebx
sub esi, ebx
js 0x651d0f
add esi, esi
movzx ebx, word [esp + 0xaa]
sub esi, ebx
js 0x651d0f
mov dword [esp + 0x34], ebx
add esi, esi
movzx ebx, word [esp + 0xac]
mov dword [esp + 0x30], ebx
sub esi, ebx
js 0x651d0f
add esi, esi
mov ebx, dword [esp + 0x6c]
movzx ebx, bx
sub esi, ebx
js 0x651d0f
test esi, esi
mov ebx, dword [ebp + 0x14]
jle 0x6518e1
mov esi, dword [ebp + 8]
test esi, esi
je 0x651d0f
cmp edi, 1
jne 0x651d0f
mov edx, dword [esp + 0x68]
add edx, ecx
mov word [esp + 0x72], 0
mov word [esp + 0x74], cx
mov ecx, dword [esp + 0x64]
add ecx, edx
mov word [esp + 0x76], dx
mov edx, dword [esp + 0x58]
add edx, ecx
mov word [esp + 0x78], cx
mov ecx, dword [esp + 0x54]
add ecx, edx
mov word [esp + 0x7a], dx
mov edx, dword [esp + 0x50]
add edx, ecx
mov word [esp + 0x7c], cx
mov ecx, dword [esp + 0x4c]
add ecx, edx
mov word [esp + 0x7e], dx
mov edx, dword [esp + 0x48]
add edx, ecx
mov word [esp + 0x80], cx
mov ecx, dword [esp + 0x44]
add ecx, edx
mov word [esp + 0x82], dx
mov edx, dword [esp + 0x40]
add edx, ecx
mov word [esp + 0x84], cx
mov ecx, dword [esp + 0x3c]
add ecx, edx
mov word [esp + 0x86], dx
mov edx, dword [esp + 0x38]
add edx, ecx
mov word [esp + 0x88], cx
mov ecx, dword [esp + 0x34]
add ecx, edx
mov word [esp + 0x8a], dx
mov edx, dword [esp + 0x30]
add edx, ecx
mov word [esp + 0x8c], cx
mov word [esp + 0x8e], dx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x6519c7
xor ecx, ecx
mov edx, dword [ebp + 0xc]
movzx edx, word [edx + ecx*2]
test edx, edx
je 0x6519bf
movzx esi, word [esp + edx*2 + 0x70]
lea ebx, [esi + 1]
mov word [esp + edx*2 + 0x70], bx
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x1c]
mov word [edx + esi*2], cx
inc ecx
mov edx, dword [ebp + 0x10]
cmp edx, ecx
jne 0x65199d
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x651a13
cmp ecx, 1
jne 0x651a40
mov dword [esp + 0x50], 0
mov edx, 1
cmp dword [esp + 0x60], 9
ja 0x651d0f
mov cl, 1
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x38], 0x101
mov dword [esp + 0x2c], 0x7e3ffe
mov dword [esp + 0x28], 0x7e3fc0
mov dword [esp + 0x18], 0
jmp 0x651a8e
mov dword [esp + 0x50], 0
mov dword [esp + 0x38], 0x14
mov dword [esp + 0x18], 0
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], 0
jmp 0x651a8e
mov dword [esp + 0x50], 0
mov dword [esp + 0x38], 0
cmp ecx, 2
sete cl
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], 0x7e407c
mov dword [esp + 0x28], 0x7e403c
jne 0x651a86
mov edx, 1
cmp dword [esp + 0x60], 9
mov dword [esp + 0x1c], 0
ja 0x651d0f
jmp 0x651a8e
mov dword [esp + 0x1c], 0
mov edx, 1
mov ecx, dword [esp + 0x60]
shl edx, cl
mov dword [esp + 0x20], edx
mov ebx, dword [ebx]
mov dword [esp + 0x34], 0xffffffff
mov esi, 0
dec edx
mov dword [esp + 0x30], edx
xor edi, edi
jmp 0x651af5
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x24]
lea edi, [edi + edx*4]
mov dword [esp + 0x24], edi
mov edx, dword [esi]
mov edi, dword [esp + 0x58]
mov byte [edx + edi*4], cl
mov edx, dword [esi]
mov ebx, dword [esp + 0x60]
mov byte [edx + edi*4 + 1], bl
mov edx, dword [esi]
mov ebx, dword [esp + 0x24]
mov esi, ebx
sub esi, edx
shr esi, 2
mov word [edx + edi*4 + 2], si
mov dword [esp + 0x34], edi
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x64]
mov dword [esp + 0x48], esi
mov dword [esp + 0x24], ebx
mov edx, 1
shl edx, cl
mov dword [esp + 0x44], edx
neg edx
mov dword [esp + 0x40], edx
lea ecx, [ebx + 2]
mov dword [esp + 0x3c], ecx
mov ebx, edi
mov edx, dword [esp + 0x50]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], edx
mov ecx, eax
mov ebx, dword [esp + 0x48]
sub ecx, ebx
mov dword [esp + 0x58], ecx
mov ecx, dword [ebp + 0x1c]
mov cx, word [ecx + edx*2]
mov dword [esp + 0x6c], ecx
movzx ecx, cx
lea edx, [ecx + 1]
mov esi, dword [esp + 0x38]
cmp edx, esi
mov edx, esi
jae 0x651b54
mov dword [esp + 0x4c], 0
jmp 0x651b7f
sub ecx, edx
jae 0x651b68
mov cl, 0x60
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x6c], 0
jmp 0x651b7f
mov edx, dword [esp + 0x2c]
mov dl, byte [edx + ecx*2]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x28]
movzx ecx, word [edx + ecx*2]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x58]
mov esi, 1
mov edi, ecx
shl esi, cl
mov dword [esp + 0x68], esi
mov edx, dword [esp + 0x54]
mov cl, bl
shr edx, cl
add edx, dword [esp + 0x44]
sub edx, esi
mov ecx, dword [esp + 0x3c]
lea ecx, [ecx + edx*4]
lea edx, [esi*4]
neg edx
mov dword [esp + 0x64], edx
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x4c]
nop word [eax + eax]
mov edx, esi
mov byte [ecx - 2], dl
mov edx, edi
mov byte [ecx - 1], dl
mov edx, dword [esp + 0x6c]
mov word [ecx], dx
add ecx, dword [esp + 0x64]
add ebx, dword [esp + 0x68]
jne 0x651bc0
mov dword [esp + 0x58], edi
lea ecx, [eax - 1]
mov edx, 1
shl edx, cl
mov esi, dword [esp + 0x54]
nop dword [eax]
mov ecx, edx
shr edx, 1
test ecx, esi
jne 0x651bf0
xor ebx, ebx
test ecx, ecx
mov edx, dword [ebp + 0x18]
mov edi, dword [esp + 0x5c]
je 0x651c0c
lea ebx, [ecx - 1]
and ebx, esi
add ebx, ecx
dec word [esp + eax*2 + 0x90]
je 0x651c1c
mov edx, dword [esp + 0x50]
jmp 0x651c37
cmp eax, edi
je 0x651ce0
mov eax, dword [ebp + 0x1c]
mov edx, dword [esp + 0x50]
movzx eax, word [eax + edx*2 + 2]
mov ecx, dword [ebp + 0xc]
movzx eax, word [ecx + eax*2]
inc edx
cmp eax, dword [esp + 0x60]
mov ecx, ebx
jbe 0x651b1b
mov esi, ecx
and esi, dword [esp + 0x30]
cmp esi, dword [esp + 0x34]
mov ebx, ecx
je 0x651b1b
mov dword [esp + 0x58], esi
mov dword [esp + 0x64], ecx
mov dword [esp + 0x50], edx
mov ebx, dword [esp + 0x48]
test ebx, ebx
cmove ebx, dword [esp + 0x60]
mov ecx, eax
sub ecx, ebx
cmp eax, edi
jae 0x651c93
mov edx, 1
shl edx, cl
mov ecx, eax
movzx esi, word [esp + ecx*2 + 0x90]
sub edx, esi
jle 0x651c91
add edx, edx
inc ecx
cmp ecx, edi
jb 0x651c7e
sub ecx, ebx
mov dword [esp + 0x48], ebx
mov edx, 1
mov esi, 1
shl esi, cl
mov ebx, dword [esp + 0x20]
add ebx, esi
mov dword [esp + 0x20], ebx
cmp ebx, 0x354
seta byte [esp + 0x6c]
cmp ebx, 0x250
seta byte [esp + 0x68]
mov ebx, dword [esp + 0x1c]
test byte [esp + 0x6c], bl
jne 0x651d0f
mov ebx, dword [esp + 0x18]
and byte [esp + 0x68], bl
mov esi, dword [ebp + 0x14]
je 0x651ab5
jmp 0x651d0f
test ebx, ebx
je 0x651cfb
mov eax, dword [esp + 0x24]
mov byte [eax + ebx*4], 0x40
mov ecx, dword [esp + 0x58]
mov byte [eax + ebx*4 + 1], cl
mov word [eax + ebx*4 + 2], 0
mov eax, dword [esp + 0x20]
shl eax, 2
mov ecx, dword [ebp + 0x14]
add dword [ecx], eax
mov eax, dword [esp + 0x60]
mov dword [edx], eax
xor edx, edx
mov eax, edx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp word [esp + 0x92], 0
je 0x651d41
cmp ecx, 1
mov edi, 1
cmova ecx, edi
mov dword [esp + 0x6c], 0
mov eax, 1
jmp 0x651770
mov eax, dword [ebx]
lea ecx, [eax + 4]
mov dword [ebx], ecx
mov byte [eax], 0x40
mov byte [eax + 1], 1
mov word [eax + 2], 0
mov eax, dword [ebx]
lea ecx, [eax + 4]
mov dword [ebx], ecx
mov byte [eax], 0x40
mov byte [eax + 1], 1
mov word [eax + 2], 0
mov dword [esi], 1
jmp 0x651d0d