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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xe0
mov esi, dword [ebp + 0x24]
mov edx, dword [ebp + 0x28]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], esi
test eax, eax
mov ebx, 6
cmovns ebx, eax
mov eax, esi
mov dword [esp + 0x44], edx
or eax, edx
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x28], edx
mov dword [esp + 0x14], esi
je 0x40ee9a
mov ecx, ebx
and ecx, 0x400
jmp 0x40eead
mov eax, ebx
and eax, 0x400
xor ecx, ecx
cmp dword [ebp + 0x14], 0
je 0x40eeb3
test eax, eax
jne 0x40eeb3
mov eax, ecx
mov cx, 8
mov edx, ebx
or edx, 0x10000
mov edi, ebx
xor edi, 0xfffeffff
movzx esi, cx
lea ecx, [esi + 0x800]
test edx, edi
cmove esi, ecx
mov dword [esp + 0x7c], esi
mov ecx, ebx
and ecx, 0xf
mov dword [esp + 0x2c], ecx
sete cl
test eax, eax
setne dl
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x48]
mov dword [esp + 0xc], esi
test esi, esi
je 0x40f052
cmp dword [edi + 0x14], 2
jne 0x40f052
cmp dword [ebp + 0x14], 0
setne ch
cmp dword [ebp + 0x10], 0
sete dh
cmp dword [ebp + 0xc], 0
je 0x40f052
and dh, ch
jne 0x40f052
cmp word [ebp + 0x1c], 0
setne ch
cmp dword [ebp + 0x18], 0
sete dh
test dh, ch
jne 0x40f052
cmp dword [esp + 0x2c], 0xb
jae 0x40f052
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x34], 0
mov esi, dword [edi + 0x10]
je 0x40ef65
cmp esi, 0xffffffff
mov esi, dword [ebp + 0xc]
jne 0x40ef8b
mov dword [edi + 0x1c], 2
jmp 0x40f059
mov dword [esp + 0x18], esi
cmp dword [esp + 0x44], 0
mov esi, dword [ebp + 0xc]
jne 0x40ef7d
cmp dword [esp + 0x18], 0xffff
jne 0x40ef8b
mov esi, dword [esp + 0xc]
mov dword [esi + 0x34], 1
mov esi, dword [ebp + 0xc]
or cl, dl
movzx ecx, cl
test eax, eax
je 0x40f048
cmp byte [esi], 0x2f
je 0x40f06c
mov dword [esp + 0x18], ecx
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x78], eax
push esi
call fcn.00417200
add esp, 4
cmp eax, 0x10000
jae 0x40f06c
mov dword [esp + 0x40], eax
mov dword [esp + 0x1c], 0
mov eax, dword [edi + 0x20]
mov edx, dword [edi + 0x24]
or edx, eax
mov edx, 0
je 0x40eff8
mov ecx, edi
mov edx, eax
mov esi, 0xfffffffe
or edx, esi
mov edi, eax
and edi, 0xfffffffe
add edx, edi
inc edx
mov edi, dword [ecx]
and edi, edx
sub eax, edi
and eax, edx
mov edx, eax
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0xc]
mov esi, eax
mov ecx, dword [eax + 4]
xor eax, eax
mov edx, dword [esp + 0x40]
mov dword [esp + 0x54], ecx
add edx, ecx
setb al
add edx, 0x4a
adc eax, 0
movzx edi, word [ebp + 0x1c]
mov ecx, edx
xor ecx, edi
mov dword [esp + 0x74], edi
and edx, edi
add edx, edx
add edx, ecx
adc eax, 0
mov ecx, 0xfffffffe
cmp ecx, edx
sbb dword [esp + 0x1c], eax
jae 0x40f075
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x40f059
mov eax, dword [esp + 0x14]
or eax, dword [esp + 0x44]
je 0x40f063
mov dword [edi + 0x1c], 0x18
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp byte [esi], 0x2f
jne 0x40f200
mov dword [edi + 0x1c], 0x19
jmp 0x40f059
mov ecx, dword [esi + 0x34]
test ecx, ecx
mov esi, dword [esp + 0x24]
jne 0x40f0db
mov edi, dword [esp + 0x40]
mov eax, edi
shr eax, 0x1f
mov dword [esp + 0x1c], eax
xor ecx, ecx
mov eax, dword [esp + 0x74]
add eax, dword [ebp + 0x38]
mov edx, 0
adc edx, 0xffffffff
add eax, dword [ebp + 0x40]
adc edx, 0
add edi, edi
add eax, edi
mov edi, dword [ebp + 8]
adc edx, dword [esp + 0x1c]
add eax, esi
adc edx, 0
add eax, dword [esp + 0x54]
adc edx, 0
add eax, dword [edi]
adc edx, dword [edi + 4]
add eax, 0x72
adc edx, 0
cmp edx, 0xffffffff
je 0x40f0db
mov eax, dword [esp + 0xc]
mov dword [eax + 0x34], 1
mov ecx, 1
xor eax, eax
mov edx, dword [esp + 0x40]
test edx, edx
je 0x40f10c
mov edi, dword [ebp + 0xc]
cmp byte [edx + edi - 1], 0x2f
jne 0x40f10c
cmp dword [ebp + 0x14], 0
jne 0x40f25b
mov eax, 0x10
mov esi, dword [esp + 0x14]
or esi, dword [esp + 0x44]
jne 0x40f25b
mov dword [esp + 0x44], eax
test ecx, ecx
mov eax, 0x1c
cmove eax, ecx
mov ecx, dword [esp + 0x74]
add ecx, edx
add eax, ecx
add eax, 0x2e
mov ecx, eax
mov edx, dword [esp + 0x54]
and ecx, edx
xor eax, edx
lea eax, [eax + ecx*2]
mov edi, dword [esp + 0xc]
mov edx, dword [edi + 8]
cmp edx, eax
jae 0x40f176
test edx, edx
mov ecx, 1
cmovne ecx, edx
mov esi, ecx
add ecx, ecx
cmp esi, eax
jb 0x40f147
push esi
mov eax, dword [esp + 0x10]
push dword [eax + 0xc]
push dword [eax]
mov edi, dword [ebp + 8]
push dword [edi + 0x34]
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x40f1f4
mov edi, dword [esp + 0xc]
mov dword [edi], eax
mov dword [edi + 8], esi
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x18]
mov edx, eax
and edx, 1
xor eax, 1
lea eax, [eax + edx*2]
cmp ecx, eax
jae 0x40f1c2
test ecx, ecx
mov edx, 1
cmovne edx, ecx
mov esi, edx
add edx, edx
cmp esi, eax
jb 0x40f195
push esi
mov eax, dword [esp + 0x10]
push dword [eax + 0x1c]
push dword [eax + 0x10]
mov edi, dword [ebp + 8]
push dword [edi + 0x34]
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x40f1f4
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x18], esi
xor eax, eax
cmp dword [ebp + 0x14], 0
mov esi, dword [esp + 0x10]
je 0x40f26a
cmp dword [esp + 0x18], 0
mov edi, dword [ebp + 8]
jne 0x40f26d
push 0x4df40
push 1
push dword [edi + 0x34]
call dword [edi + 0x28]
add esp, 0xc
test eax, eax
jne 0x40f26d
mov dword [edi + 0x1c], 0x10
jmp 0x40f059
mov eax, dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push 0
mov dword [esp + 0x24], ecx
call fcn.00403010
add esp, 0xc
mov dword [esp + 0x78], eax
xor ecx, ecx
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0
cmp eax, 4
mov edx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x44], 0
cmovb eax, ecx
mov dword [esp + 0x2c], eax
mov eax, 1
mov ecx, dword [esp + 0x18]
cmovb ecx, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
jmp 0x40efac
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x18
jmp 0x40f059
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov ecx, edi
mov edx, esi
mov eax, dword [esp + 0x24]
push eax
mov edi, eax
push dword [esp + 0x2c]
call fcn.0040f9f0
add esp, 8
test eax, eax
je 0x40f2ec
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
add eax, edi
adc ecx, 0
mov edx, esi
and edx, edi
xor esi, edi
mov edi, edx
shr edi, 0x1f
add edx, edx
add esi, edx
adc edi, dword [esp + 0x28]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
xorps xmm0, xmm0
movaps xmmword [esp + 0x80], xmm0
movups xmmword [esp + 0x8e], xmm0
cmp dword [esp + 0x18], 0
je 0x40f2e0
mov edx, ebx
or edx, 0x400
xor ebx, 0xfffffbff
test edx, ebx
je 0x40f301
mov dx, 8
mov dword [esp + 0x28], edx
mov bl, 0x14
jmp 0x40f30b
push dword [esp + 0x14]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
jmp 0x40f059
xor ebx, ebx
mov dword [esp + 0x28], 0
mov edx, dword [esp + 0xc]
cmp dword [edx + 0x34], 0
je 0x40f358
mov dword [esp + 0x24], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x1c], 0
mov ebx, 0xfffffffe
cmp ebx, esi
mov edi, 0
sbb edi, edx
jb 0x40f44a
xor edi, edi
cmp ebx, eax
sbb edi, ecx
jb 0x40f44a
xor edi, edi
jmp 0x40f492
cmp dword [esp + 0x4c], 0
jne 0x40f7f2
test edi, edi
jne 0x40f7f2
mov dword [esp + 0xc], edi
mov edi, esi
mov dword [esp + 0x80], 0x4034b50
mov byte [esp + 0x84], bl
mov ebx, dword [esp + 0x7c]
movzx edx, bx
mov byte [esp + 0x86], bl
mov byte [esp + 0x87], dh
mov edx, dword [esp + 0x28]
mov byte [esp + 0x88], dl
movups xmmword [esp + 0x89], xmm0
mov byte [esp + 0x99], 0
mov ebx, dword [esp + 0x40]
mov byte [esp + 0x9a], bl
mov byte [esp + 0x9b], bh
mov edx, dword [ebp + 0x38]
mov byte [esp + 0x9c], dl
mov byte [esp + 0x9d], dh
lea edx, [esp + 0x80]
push 0x1e
push edx
push ecx
push eax
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x40f59f
mov eax, edi
mov dword [esp + 0x10], edi
add eax, 0x1e
mov edi, dword [esp + 0xc]
mov ecx, edi
adc ecx, 0
push ebx
push dword [ebp + 0xc]
push ecx
push eax
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x40f592
mov eax, ebx
add eax, dword [esp + 0x10]
adc edi, 0
add eax, 0x1e
adc edi, 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], eax
mov esi, edi
jmp 0x40f5b7
xor edi, edi
cmp ebx, eax
mov eax, 0
sbb eax, ecx
lea eax, [esp + 0x30]
cmovae eax, edi
cmp ebx, esi
mov ecx, 0
sbb ecx, edx
lea esi, [esp + 0x48]
cmovae esi, edi
lea edx, [esp + 0x38]
cmovae edx, edi
lea ecx, [esp + 0xc0]
mov dword [esp + 0x1c], ecx
push eax
push esi
call fcn.0040fa90
add esp, 8
mov edi, eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov esi, dword [ebp + 8]
mov dword [esp + 0x80], 0x4034b50
mov edx, dword [esp + 0x24]
mov byte [esp + 0x84], dl
mov byte [esp + 0x85], 0
movzx edx, word [esp + 0x7c]
mov byte [esp + 0x86], dl
mov byte [esp + 0x87], dh
mov edx, dword [ebp + 0x38]
add edx, edi
mov ebx, dword [esp + 0x28]
mov byte [esp + 0x88], bl
xorps xmm0, xmm0
movups xmmword [esp + 0x89], xmm0
mov byte [esp + 0x99], 0
mov ebx, dword [esp + 0x40]
mov byte [esp + 0x9a], bl
mov byte [esp + 0x9b], bh
mov byte [esp + 0x9c], dl
mov byte [esp + 0x9d], dh
lea edx, [esp + 0x80]
push 0x1e
push edx
push ecx
push eax
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x40f59f
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x10]
lea eax, [edi + edi]
and eax, 0x3c
xor edi, 0x1e
add edi, eax
mov eax, dword [esp + 0xc]
adc eax, 0
push ebx
push dword [ebp + 0xc]
mov dword [esp + 0x14], eax
push eax
push edi
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x40f592
add edi, ebx
mov esi, dword [esp + 0xc]
adc esi, 0
cmp dword [esp + 0x1c], 0
je 0x40f5ab
lea eax, [esp + 0xc0]
mov ebx, dword [esp + 0x24]
push ebx
push eax
push esi
push edi
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x40f628
add edi, ebx
mov dword [esp + 0x10], edi
adc esi, 0
jmp 0x40f5b7
push dword [esp + 0x14]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0x13
jmp 0x40f059
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], 0
mov ebx, dword [ebp + 0x38]
test ebx, ebx
je 0x40f5e1
push ebx
push dword [ebp + 0x34]
push esi
mov edi, dword [esp + 0x1c]
push edi
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x40f628
add edi, ebx
mov dword [esp + 0x10], edi
adc esi, 0
mov eax, dword [esp + 0x18]
test eax, eax
mov ebx, dword [ebp + 0x14]
je 0x40f637
push ebx
push dword [ebp + 0x10]
push esi
mov edi, dword [esp + 0x1c]
push edi
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x40f7e2
add edi, ebx
mov dword [esp + 0x10], edi
adc esi, 0
mov dword [esp + 0xc], esi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 0
jmp 0x40f6df
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x13
jmp 0x40f059
mov dword [esp + 0xc], esi
test ebx, ebx
je 0x40f6df
mov eax, dword [ebp + 8]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
push 0
push 0xfffffffffffffff1
push dword [esp + 0x34]
call fcn.0040e100
add esp, 0xc
lea ecx, [esp + 0x58]
push eax
push ecx
push 0x40faf0
mov esi, dword [esp + 0x20]
push esi
call fcn.0040df60
add esp, 0x10
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xbc], eax
lea eax, [esp + 0xbc]
push 4
push 0
push 0
push eax
push dword [ebp + 0x10]
push esi
call fcn.00403dd0
add esp, 0x18
cmp eax, 1
jne 0x40f801
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0xc], eax
push dword [esp + 0x14]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edi, eax
mov dword [esp + 0x2c], ecx
or eax, ecx
je 0x40f915
mov dword [esp + 0x58], 0x8074b50
mov ecx, dword [esp + 0x78]
mov byte [esp + 0x5c], cl
mov byte [esp + 0x5d], ch
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x5e], al
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x5f], al
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
cmp dword [esp + 0x1c], 0
je 0x40f7ee
mov byte [esp + 0x60], cl
mov byte [esp + 0x61], ch
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x62], al
mov eax, edx
shr eax, 0x10
shr ecx, 0x18
mov byte [esp + 0x63], cl
mov ecx, edx
shr ecx, 0x18
mov byte [esp + 0x64], dl
mov byte [esp + 0x65], dh
mov byte [esp + 0x66], al
mov byte [esp + 0x67], cl
mov ecx, edi
mov byte [esp + 0x68], cl
mov byte [esp + 0x69], ch
mov eax, edi
shr eax, 0x10
mov byte [esp + 0x6a], al
mov eax, edi
shr eax, 0x18
mov byte [esp + 0x6b], al
mov dword [esp + 0x18], 0x38
mov dword [esp + 0xb4], 0x30
mov ecx, 0x28
mov dword [esp + 0x14], 0x18
mov dword [esp + 0x54], 0x17
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x23], al
mov dword [esp + 0xb0], 0x16
mov dword [esp + 0xac], 0x15
mov dword [esp + 0xa8], 0x14
jmp 0x40f870
push dword [esp + 0x14]
mov esi, dword [ebp + 8]
jmp 0x40f596
test edx, edx
je 0x40f81d
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x40f059
push dword [esp + 0x14]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0xc
jmp 0x40f059
mov dword [esp + 0x60], ecx
mov dword [esp + 0x18], 0x18
mov dword [esp + 0xb4], 0x10
mov ecx, 8
mov dword [esp + 0x54], 0xf
mov dword [esp + 0xb0], 0xe
mov eax, edi
mov byte [esp + 0x23], al
mov dword [esp + 0xac], 0xd
mov dword [esp + 0xa8], 0xc
mov dword [esp + 0x14], 0x10
mov ebx, edi
mov edx, dword [esp + 0x2c]
shrd ebx, edx, cl
mov eax, edx
shr eax, cl
test cl, 0x20
cmove eax, ebx
mov esi, edi
mov ecx, dword [esp + 0xb4]
shrd esi, edx, cl
mov dword [esp + 0xb8], esi
movzx ebx, byte [esp + 0x23]
mov esi, dword [esp + 0xa8]
mov byte [esp + esi + 0x58], bl
mov ebx, dword [esp + 0xac]
mov byte [esp + ebx + 0x58], al
mov eax, edx
shr eax, cl
test cl, 0x20
cmove eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xb0]
mov byte [esp + ecx + 0x58], al
mov ecx, dword [esp + 0x18]
shrd edi, edx, cl
shr edx, cl
test cl, 0x20
cmove edx, edi
mov eax, dword [esp + 0x54]
mov byte [esp + eax + 0x58], dl
lea eax, [esp + 0x58]
mov esi, dword [esp + 0x14]
push esi
push eax
push dword [esp + 0x14]
push dword [esp + 0x1c]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x40f059
mov eax, dword [esp + 0x14]
add dword [esp + 0x10], eax
adc dword [esp + 0xc], 0
cmp dword [esp + 0x1c], 0
je 0x40f967
xor ecx, ecx
mov edx, 0xfffffffe
cmp edx, dword [esp + 0x30]
mov eax, 0
sbb eax, dword [esp + 0x34]
lea eax, [esp + 0x30]
cmovae eax, ecx
cmp edx, dword [esp + 0x38]
mov edx, 0
sbb edx, dword [esp + 0x3c]
lea esi, [esp + 0x48]
cmovae esi, ecx
lea edx, [esp + 0x38]
cmovae edx, ecx
lea ecx, [esp + 0xc0]
push eax
push esi
call fcn.0040fa90
add esp, 8
mov dword [esp + 0x24], eax
movzx ebx, word [esp + 0x7c]
movzx esi, word [esp + 0x28]
movzx eax, word [esp + 0x24]
movzx edi, word [esp + 0x40]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [esp + 0x4c]
push dword [esp + 0x40]
push dword [esp + 0x40]
push 0
push ebx
push esi
push dword [esp + 0x98]
push dword [esp + 0x70]
push dword [esp + 0x70]
push dword [esp + 0x68]
push dword [esp + 0x68]
push dword [esp + 0xa8]
push dword [ebp + 0x18]
push eax
push dword [esp + 0x5c]
push edi
call fcn.0040fb50
add esp, 0x48
test eax, eax
je 0x40f059
mov eax, dword [ebp + 8]
inc dword [eax + 0x10]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov eax, 1
jmp 0x40f05b