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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
test eax, eax
je 0x40f295
nop dword [eax]
movzx edx, word [ecx]
add ecx, 2
inc word [esp + edx*2 + 0x30]
dec eax
jne 0x40f260
movzx eax, word [esp + 0x4e]
mov ecx, dword [esi]
mov edi, 0xf
test ax, ax
jne 0x40f360
cmp word [esp + 0x4c], 0
je 0x40f29f
mov edi, 0xe
jmp 0x40f35e
mov ecx, dword [esi]
cmp word [esp + 0x4c], 0
jne 0x40f28b
cmp word [esp + 0x4a], 0
je 0x40f2b1
mov edi, 0xd
jmp 0x40f35e
cmp word [esp + 0x48], 0
je 0x40f2c3
mov edi, 0xc
jmp 0x40f35e
cmp word [esp + 0x46], 0
je 0x40f2d5
mov edi, 0xb
jmp 0x40f35e
cmp word [esp + 0x44], 0
je 0x40f2e4
mov edi, 0xa
jmp 0x40f35e
cmp word [esp + 0x42], 0
je 0x40f2f3
mov edi, 9
jmp 0x40f35e
cmp word [esp + 0x40], 0
je 0x40f302
mov edi, 8
jmp 0x40f35e
cmp word [esp + 0x3e], 0
je 0x40f311
mov edi, 7
jmp 0x40f35e
cmp word [esp + 0x3c], 0
je 0x40f320
mov edi, 6
jmp 0x40f35e
cmp word [esp + 0x3a], 0
je 0x40f32f
mov edi, 5
jmp 0x40f35e
cmp word [esp + 0x38], 0
je 0x40f33e
mov edi, 4
jmp 0x40f35e
cmp word [esp + 0x36], 0
je 0x40f34d
mov edi, 3
jmp 0x40f35e
cmp word [esp + 0x34], 0
je 0x40f903
mov edi, 2
xor eax, eax
cmp ecx, edi
mov dword [esp + 0xc], eax
mov eax, 1
cmova ecx, edi
nop
cmp word [esp + eax*2 + 0x30], 0
jne 0x40f37d
inc eax
cmp eax, edi
jb 0x40f370
cmp ecx, eax
mov esi, 2
mov edx, 0xffffffff
cmovb ecx, eax
mov dword [esp + 0x14], ecx
movzx ecx, word [esp + 0x32]
sub esi, ecx
js 0x40f8f9
movzx ebx, word [esp + 0x34]
add esi, esi
sub esi, ebx
mov dword [esp + 0x70], ebx
js 0x40f8f9
movzx ebx, word [esp + 0x36]
add esi, esi
sub esi, ebx
js 0x40f8f9
mov dword [esp + 0x6c], ebx
movzx ebx, word [esp + 0x38]
add esi, esi
sub esi, ebx
mov dword [esp + 8], ebx
js 0x40f8f9
movzx ebx, word [esp + 0x3a]
add esi, esi
sub esi, ebx
js 0x40f8f9
mov dword [esp + 0x20], ebx
movzx ebx, word [esp + 0x3c]
add esi, esi
sub esi, ebx
mov dword [esp + 4], ebx
js 0x40f8f9
movzx ebx, word [esp + 0x3e]
add esi, esi
sub esi, ebx
js 0x40f8f9
mov dword [esp + 0x10], ebx
movzx ebx, word [esp + 0x40]
add esi, esi
sub esi, ebx
mov dword [esp + 0x1c], ebx
js 0x40f8f9
movzx ebx, word [esp + 0x42]
add esi, esi
sub esi, ebx
js 0x40f8f9
mov dword [esp + 0x2c], ebx
movzx ebx, word [esp + 0x44]
add esi, esi
sub esi, ebx
mov dword [esp + 0x68], ebx
js 0x40f8f9
movzx ebx, word [esp + 0x46]
add esi, esi
sub esi, ebx
js 0x40f8f9
mov dword [esp + 0x64], ebx
movzx ebx, word [esp + 0x48]
add esi, esi
sub esi, ebx
mov dword [esp + 0x18], ebx
js 0x40f8f9
movzx ebx, word [esp + 0x4a]
add esi, esi
sub esi, ebx
js 0x40f8f9
mov dword [esp + 0x60], ebx
movzx ebx, word [esp + 0x4c]
add esi, esi
sub esi, ebx
mov dword [esp + 0x28], ebx
js 0x40f8f9
movzx ebx, word [esp + 0xc]
add esi, esi
sub esi, ebx
js 0x40f8f9
mov ebx, dword [ebp + 0x14]
test esi, esi
je 0x40f4bd
cmp dword [ebp + 8], 0
je 0x40f8f9
cmp edi, 1
jne 0x40f8f9
mov edx, dword [esp + 0x70]
mov word [esp + 0x7a], 0
mov word [esp + 0x7c], cx
add edx, ecx
mov ecx, dword [esp + 0x6c]
mov word [esp + 0x7e], dx
add ecx, edx
mov edx, dword [esp + 8]
mov word [esp + 0x80], cx
add edx, ecx
mov ecx, dword [esp + 0x20]
mov word [esp + 0x82], dx
add ecx, edx
mov edx, dword [esp + 4]
mov word [esp + 0x84], cx
add edx, ecx
mov ecx, dword [esp + 0x10]
mov word [esp + 0x86], dx
add ecx, edx
mov edx, dword [esp + 0x1c]
mov word [esp + 0x88], cx
add edx, ecx
mov ecx, dword [esp + 0x2c]
mov word [esp + 0x8a], dx
add ecx, edx
mov edx, dword [esp + 0x68]
mov word [esp + 0x8c], cx
add edx, ecx
mov ecx, dword [esp + 0x64]
mov word [esp + 0x8e], dx
add ecx, edx
mov edx, dword [esp + 0x18]
mov word [esp + 0x90], cx
add edx, ecx
mov ecx, dword [esp + 0x60]
mov word [esp + 0x92], dx
add ecx, edx
mov edx, dword [esp + 0x28]
mov word [esp + 0x94], cx
add edx, ecx
mov word [esp + 0x96], dx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x40f5af
xor ecx, ecx
mov edx, dword [ebp + 0xc]
movzx edx, word [edx + ecx*2]
test edx, edx
je 0x40f5a7
movzx esi, word [esp + edx*2 + 0x78]
lea ebx, [esi + 1]
mov word [esp + edx*2 + 0x78], bx
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x1c]
mov word [edx + esi*2], cx
mov edx, dword [ebp + 0x10]
inc ecx
cmp edx, ecx
jne 0x40f585
mov ecx, dword [ebp + 8]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x40f5fb
cmp ecx, 1
jne 0x40f620
cmp dword [esp + 0x14], 9
mov edx, 1
ja 0x40f8f9
mov cl, 1
mov dword [esp + 0x18], 0x101
mov dword [esp + 0x5c], 0x4468ca
mov dword [esp + 0x58], 0x44688c
mov dword [esp + 0x50], 0
mov dword [esp + 0x24], ecx
jmp 0x40f666
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x18], 0x14
mov dword [esp + 0x50], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
jmp 0x40f666
cmp ecx, 2
mov dword [esp + 0x18], 0
mov dword [esp + 0x5c], 0x446948
mov dword [esp + 0x58], 0x446908
sete cl
mov dword [esp + 0x50], ecx
jne 0x40f65e
cmp dword [esp + 0x14], 9
mov edx, 1
mov dword [esp + 0x24], 0
ja 0x40f8f9
jmp 0x40f666
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x14]
mov esi, dword [ebx]
mov edx, 1
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0x60], edi
shl edx, cl
mov dword [esp + 0x54], edx
dec edx
mov dword [esp + 0x98], edx
jmp 0x40f6ce
mov edi, dword [esp + 0x74]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x28], esi
lea edi, [edi + edx*4]
mov edx, dword [ebx]
mov byte [edx + esi*4], cl
mov edx, dword [ebx]
mov ebx, dword [esp + 0x14]
mov byte [edx + esi*4 + 1], bl
mov edx, dword [ebp + 0x14]
mov ebx, edi
mov edx, dword [edx]
sub ebx, edx
shr ebx, 2
mov word [edx + esi*4 + 2], bx
mov esi, edi
mov edx, 1
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x74], esi
shl edx, cl
lea ecx, [esi + 2]
mov dword [esp + 0x68], ecx
mov ecx, edx
mov ecx, dword [esp + 8]
mov dword [esp + 0x2c], edx
neg edx
mov dword [esp + 0x64], edx
mov dword [esp + 8], ecx
mov ecx, eax
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], ebx
sub ecx, dword [esp + 4]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 0x1c]
movzx ecx, word [ecx + ebx*2]
mov dword [esp + 0x20], ecx
movzx ecx, cx
lea edx, [ecx + 1]
cmp edx, esi
jae 0x40f729
mov dword [esp + 0x1c], 0
jmp 0x40f758
mov edx, esi
cmp esi, ecx
jbe 0x40f73f
mov cl, 0x60
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ecx
jmp 0x40f758
sub ecx, edx
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0x58]
mov dl, byte [edx + ecx*2]
movzx ecx, word [esi + ecx*2]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0xc]
mov esi, 1
mov edx, dword [esp + 8]
mov edi, dword [esp + 0x20]
shl esi, cl
mov ecx, dword [esp + 4]
mov dword [esp + 0x70], esi
shr edx, cl
mov ecx, dword [esp + 0x68]
add edx, dword [esp + 0x2c]
sub edx, esi
lea ecx, [ecx + edx*4]
lea edx, [esi*4]
mov esi, dword [esp + 0x1c]
neg edx
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x64]
nop word [eax + eax]
mov ebx, esi
mov byte [ecx - 2], bl
mov ebx, dword [esp + 0xc]
mov byte [ecx - 1], bl
mov word [ecx], di
add ecx, dword [esp + 0x6c]
add edx, dword [esp + 0x70]
jne 0x40f7a0
mov ebx, dword [ebp + 0x14]
mov esi, dword [esp + 8]
lea ecx, [eax - 1]
mov edx, 1
shl edx, cl
nop word [eax + eax]
mov ecx, edx
shr edx, 1
test ecx, esi
jne 0x40f7d0
mov edi, dword [esp + 0x60]
test ecx, ecx
je 0x40f7f8
lea edx, [ecx - 1]
and edx, dword [esp + 8]
add edx, ecx
mov ecx, edx
mov edx, dword [esp + 0x14]
dec word [esp + eax*2 + 0x30]
jne 0x40f805
jmp 0x40f814
xor ecx, ecx
mov edx, dword [esp + 0x14]
dec word [esp + eax*2 + 0x30]
je 0x40f814
mov ebx, dword [esp + 0x10]
inc ebx
cmp eax, edx
jbe 0x40f6f4
jmp 0x40f83c
cmp eax, edi
je 0x40f8ce
mov eax, dword [ebp + 0x1c]
mov ebx, dword [esp + 0x10]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
movzx eax, word [eax + ebx*2 + 2]
movzx eax, word [ecx + eax*2]
mov ecx, esi
inc ebx
cmp eax, edx
jbe 0x40f6f4
mov esi, ecx
and esi, dword [esp + 0x98]
cmp esi, dword [esp + 0x28]
je 0x40f6f4
mov edx, dword [esp + 4]
mov dword [esp + 8], ecx
mov ecx, eax
mov dword [esp + 0x10], ebx
test edx, edx
cmove edx, dword [esp + 0x14]
mov dword [esp + 4], edx
sub ecx, edx
mov edx, 1
shl edx, cl
cmp eax, edi
jae 0x40f892
mov ecx, eax
movzx ebx, word [esp + ecx*2 + 0x30]
sub edx, ebx
jle 0x40f887
inc ecx
add edx, edx
cmp ecx, edi
jb 0x40f877
sub ecx, dword [esp + 4]
mov edx, 1
shl edx, cl
mov ebx, dword [esp + 0x54]
add ebx, edx
mov edx, 1
cmp ebx, 0x354
mov dword [esp + 0x54], ebx
seta byte [esp + 0xc]
cmp ebx, 0x250
mov bh, byte [esp + 0xc]
seta bl
test byte [esp + 0x24], bh
jne 0x40f8f9
and bl, byte [esp + 0x50]
mov ebx, dword [ebp + 0x14]
je 0x40f69d
jmp 0x40f8f9
test ecx, ecx
je 0x40f8e9
mov esi, dword [esp + 0x74]
mov eax, dword [esp + 0xc]
mov byte [esi + ecx*4], 0x40
mov byte [esi + ecx*4 + 1], al
mov word [esi + ecx*4 + 2], 0
mov eax, dword [esp + 0x54]
mov ecx, dword [ebp + 0x18]
shl eax, 2
add dword [ebx], eax
mov dword [ecx], edx
xor edx, edx
mov eax, edx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp word [esp + 0x32], 0
je 0x40f92b
xor eax, eax
test ecx, ecx
mov edi, 1
mov dword [esp + 0xc], 0
setne al
mov ecx, eax
mov eax, 1
jmp 0x40f37d
mov eax, dword [ebx]
lea ecx, [eax + 4]
mov dword [ebx], ecx
mov dword [eax], 0x140
mov eax, dword [ebx]
lea ecx, [eax + 4]
mov dword [ebx], ecx
mov dword [eax], 0x140
mov dword [esi], 1
jmp 0x40f8f7