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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xd0
mov ebx, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], ebx
test eax, eax
mov edi, 6
cmovns edi, eax
mov eax, ebx
mov dword [esp + 8], ecx
or eax, ecx
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [esp + 4], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov esi, edi
je 0x40e6a7
mov eax, edi
and eax, 0x400
jmp 0x40e6b9
and edi, 0x400
xor eax, eax
cmp dword [ebp + 0x14], 0
je 0x40e6bf
test edi, edi
jne 0x40e6bf
mov edi, eax
mov ax, 8
movzx ecx, ax
lea eax, [ecx + 0x800]
test esi, 0x10000
cmove ecx, eax
mov dword [esp + 0x6c], ecx
and esi, 0xf
sete al
mov dword [esp + 0x34], edi
test edi, edi
setne cl
mov edi, dword [edx + 0x48]
test edi, edi
je 0x40e741
cmp dword [edx + 0x14], 2
jne 0x40e741
cmp dword [ebp + 0x14], 0
setne dl
cmp dword [ebp + 0x10], 0
sete ah
cmp dword [ebp + 0xc], 0
je 0x40e741
and ah, dl
jne 0x40e741
cmp word [ebp + 0x1c], 0
setne dl
cmp dword [ebp + 0x18], 0
sete ah
test ah, dl
jne 0x40e741
cmp esi, 0xb
jae 0x40e741
mov dword [esp], edi
cmp dword [edi + 0x34], 0
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x10]
je 0x40e757
cmp edx, 0xffffffff
jne 0x40e770
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 2
jmp 0x40e74b
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x18
xor ebx, ebx
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [esp + 8], 0
jne 0x40e766
cmp edx, 0xffff
jne 0x40e770
mov edx, dword [esp]
mov dword [edx + 0x34], 1
or al, cl
movzx edx, al
cmp dword [esp + 0x34], 0
je 0x40e7a9
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x2f
mov eax, dword [ebp + 8]
je 0x40e7be
mov dword [esp + 0x18], edx
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x68], eax
push dword [ebp + 0xc]
call fcn.00417040
add esp, 4
cmp eax, 0x10000
jb 0x40e7c7
mov eax, dword [ebp + 8]
jmp 0x40e7be
or ebx, dword [esp + 8]
mov eax, dword [ebp + 8]
jne 0x40e744
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0x2f
jne 0x40e9ea
mov dword [eax + 0x1c], 0x19
jmp 0x40e74b
mov dword [esp + 0x5c], esi
mov dword [esp + 0x1c], eax
mov esi, 0xfffffffe
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
mov ecx, dword [edx + 0x24]
or ecx, eax
mov dword [esp + 0x14], 0
je 0x40e7fe
mov edx, dword [edx]
add esi, eax
inc esi
not edx
mov ecx, esi
or ecx, edx
add edx, eax
sub edx, ecx
and edx, esi
mov dword [esp + 0x14], edx
mov esi, dword [esp]
mov edx, dword [esi + 4]
movzx eax, word [ebp + 0x1c]
xor ecx, ecx
mov dword [esp + 0xa4], eax
add eax, dword [esp + 0x1c]
setb cl
mov dword [esp + 0x60], edx
add eax, edx
adc ecx, 0
mov edx, eax
mov dword [esp + 0x64], eax
add eax, 0x2e
adc ecx, 0
mov edx, 0xfffffffe
add edx, 0xffffffe4
mov edi, 0
adc edi, 0xffffffff
cmp edx, eax
sbb edi, ecx
jae 0x40e852
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x40e74b
mov ecx, dword [esi + 0x34]
test ecx, ecx
mov esi, dword [ebp + 8]
jne 0x40e8d5
mov eax, dword [esp + 0x1c]
mov edi, eax
shr edi, 0x1f
lea ecx, [eax + eax]
add ecx, dword [esp + 0xa4]
adc edi, 0
add ecx, dword [esp + 0x14]
adc edi, 0
add ecx, dword [esi]
adc edi, dword [esi + 4]
add ecx, 0x4c
adc edi, 0
mov edx, ecx
mov eax, dword [ebp + 0x38]
xor edx, eax
mov dword [esp + 0x58], edx
and ecx, eax
mov eax, ecx
shr eax, 0x1f
add ecx, ecx
xor edx, edx
mov esi, dword [esp + 0x60]
add esi, dword [ebp + 0x40]
setb dl
add esi, dword [esp + 0x58]
adc edx, edi
add esi, ecx
adc edx, eax
add esi, 0x16
adc edx, 0
lea eax, [esi + esi]
and eax, 0x20
xor ecx, ecx
add eax, esi
adc edx, 0
mov esi, dword [ebp + 8]
je 0x40e8d5
mov eax, dword [esp]
mov dword [eax + 0x34], 1
mov ecx, 1
mov dword [esp + 0x60], 0
cmp dword [esp + 0x1c], 0
je 0x40e90e
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x1c]
cmp byte [eax + edx - 1], 0x2f
jne 0x40e90e
cmp dword [ebp + 0x14], 0
jne 0x40ea3c
mov dword [esp + 0x60], 0x10
or ebx, dword [esp + 8]
jne 0x40ea3c
test ecx, ecx
mov eax, 0x1c
cmove eax, ecx
mov ecx, dword [esp + 0x64]
add eax, ecx
add eax, 0x2e
mov edi, dword [esp]
mov edx, dword [edi + 8]
cmp edx, eax
jae 0x40e960
test edx, edx
mov ecx, 1
cmovne ecx, edx
mov esi, ecx
add ecx, ecx
cmp esi, eax
jb 0x40e935
push esi
mov edi, dword [esp + 4]
push dword [edi + 0xc]
push dword [edi]
mov ebx, dword [ebp + 8]
push dword [ebx + 0x34]
call dword [ebx + 0x30]
add esp, 0x10
test eax, eax
je 0x40ea30
mov dword [edi], eax
mov dword [edi + 8], esi
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x18]
inc eax
cmp ecx, eax
jae 0x40e9a2
test ecx, ecx
mov edx, 1
cmovne edx, ecx
mov esi, edx
add edx, edx
cmp esi, eax
jb 0x40e975
push esi
mov edi, dword [esp + 4]
push dword [edi + 0x1c]
push dword [edi + 0x10]
mov ebx, dword [ebp + 8]
push dword [ebx + 0x34]
call dword [ebx + 0x30]
add esp, 0x10
test eax, eax
je 0x40ea30
mov dword [edi + 0x10], eax
mov dword [edi + 0x18], esi
xor eax, eax
cmp dword [ebp + 0x14], 0
mov edi, dword [esp + 0x14]
je 0x40ea48
cmp dword [esp + 0x18], 0
mov ecx, dword [ebp + 8]
mov esi, dword [esp + 0xc]
jne 0x40ea4f
push 0x4df40
push 1
push dword [ecx + 0x34]
mov eax, dword [ebp + 8]
call dword [eax + 0x28]
mov ecx, dword [ebp + 8]
add esp, 0xc
test eax, eax
jne 0x40ea4f
mov dword [ecx + 0x1c], 0x10
jmp 0x40e74b
mov edi, dword [ebp + 0x14]
push edi
push dword [ebp + 0x10]
push 0
mov ebx, edx
call fcn.00402ee0
add esp, 0xc
mov dword [esp + 0x68], eax
xor eax, eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0
cmp edi, 4
mov dword [esp + 8], 0
cmovb esi, eax
mov eax, 1
cmovb ebx, eax
mov dword [esp + 0x18], ebx
mov ebx, edi
jmp 0x40e792
mov dword [ebx + 0x1c], 0x10
jmp 0x40e74b
mov dword [esi + 0x1c], 0x18
jmp 0x40e74b
mov ecx, dword [ebp + 8]
mov esi, dword [esp + 0xc]
mov dword [esp + 8], eax
mov ebx, dword [esp + 4]
mov edx, ebx
push edi
push esi
call fcn.0040f1a0
add esp, 8
test eax, eax
je 0x40eb08
cmp dword [esp + 0x18], 0
setne dl
cmp dword [esp + 0x34], 0
sete dh
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
add eax, edi
adc ecx, 0
add ebx, edi
mov edi, eax
mov dword [esp + 4], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
adc esi, 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x70], xmm0
movups xmmword [esp + 0x7e], xmm0
and dh, dl
mov dl, dh
xor dl, 1
movzx eax, dl
shl eax, 3
mov dword [esp + 0x34], eax
mov eax, dword [esp]
cmp dword [eax + 0x34], 0
je 0x40eb1d
mov byte [esp + 0x14], dh
mov dword [esp], 0
mov eax, 0xfffffffe
cmp eax, dword [esp + 0x28]
mov edx, 0
sbb edx, dword [esp + 0x2c]
mov dword [esp + 0xc], esi
jae 0x40ec0b
xor edx, edx
cmp eax, edi
mov eax, 0
sbb eax, ecx
lea eax, [esp + 0x20]
cmovae eax, edx
lea edx, [esp + 0x28]
lea esi, [esp + 0x38]
jmp 0x40ec1e
push dword [esp + 8]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
jmp 0x40e74b
cmp dword [esp + 0x3c], 0
jne 0x40efac
test esi, esi
jne 0x40efac
mov dword [esp + 0xc], esi
mov dword [esp + 0x70], 0x4034b50
xor ebx, ebx
test dh, dh
mov edx, 0x14
cmovne edx, ebx
mov byte [esp + 0x74], dl
mov byte [esp + 0x75], 0
mov edx, dword [esp + 0x6c]
movzx eax, dx
mov byte [esp + 0x76], dl
mov byte [esp + 0x77], ah
mov eax, dword [esp + 0x34]
mov byte [esp + 0x78], al
movups xmmword [esp + 0x79], xmm0
mov byte [esp + 0x89], 0
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x8a], al
mov byte [esp + 0x8b], ah
mov eax, dword [ebp + 0x38]
mov byte [esp + 0x8c], al
mov byte [esp + 0x8d], ah
lea edx, [esp + 0x70]
push 0x1e
push edx
push ecx
push edi
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x40ed45
mov eax, dword [esp + 4]
add eax, 0x1e
mov ecx, esi
mov esi, dword [esp + 0xc]
adc esi, 0
mov edi, dword [esp + 0x1c]
push edi
push dword [ebp + 0xc]
push esi
mov dword [esp + 0x10], eax
push eax
push dword [ecx + 0x44]
call dword [ecx + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x40ed35
mov eax, edi
mov ecx, dword [esp + 4]
add ecx, edi
adc esi, 0
mov dword [esp], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebp + 8]
mov edi, esi
mov esi, ecx
jmp 0x40ed5b
cmp eax, edi
mov edx, 0
sbb edx, ecx
jae 0x40ec40
lea eax, [esp + 0x20]
xor edx, edx
xor esi, esi
lea ebx, [esp + 0xb0]
mov ecx, ebx
push eax
push esi
call fcn.0040f240
add esp, 8
mov esi, eax
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp], ebx
jmp 0x40ec42
xor esi, esi
mov dword [esp + 0x70], 0x4034b50
xor ebx, ebx
cmp byte [esp + 0x14], 0
mov edx, 0x14
cmovne edx, ebx
mov byte [esp + 0x74], dl
mov byte [esp + 0x75], 0
movzx edx, word [esp + 0x6c]
mov byte [esp + 0x76], dl
mov byte [esp + 0x77], dh
mov eax, dword [ebp + 0x38]
mov dword [esp + 0x14], esi
lea edx, [esi + eax]
mov eax, dword [esp + 0x34]
mov byte [esp + 0x78], al
xorps xmm0, xmm0
movups xmmword [esp + 0x79], xmm0
mov byte [esp + 0x89], 0
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x8a], al
mov byte [esp + 0x8b], ah
mov byte [esp + 0x8c], dl
mov byte [esp + 0x8d], dh
lea edx, [esp + 0x70]
push 0x1e
push edx
push ecx
push edi
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x40ed45
mov ecx, dword [esp + 4]
add ecx, 0x1e
mov eax, esi
mov esi, dword [esp + 0xc]
adc esi, 0
mov edi, dword [esp + 0x1c]
push edi
push dword [ebp + 0xc]
push esi
mov dword [esp + 0x10], ecx
push ecx
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x40ed35
mov eax, edi
mov ecx, dword [esp + 4]
add ecx, edi
adc esi, 0
cmp dword [esp], 0
mov edi, esi
mov esi, ecx
je 0x40ed51
lea eax, [esp + 0xb0]
mov ebx, dword [esp + 0x14]
push ebx
push eax
push edi
push esi
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x40edcf
add esi, ebx
adc edi, 0
jmp 0x40ed58
push dword [esp + 8]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0x13
jmp 0x40e74d
mov dword [esp], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x38]
test ecx, ecx
je 0x40ed89
push ecx
push dword [ebp + 0x34]
push edi
push esi
push dword [eax + 0x44]
call dword [eax + 0x3c]
mov ecx, dword [ebp + 0x38]
add esp, 0x14
cmp eax, ecx
jne 0x40edcf
mov eax, esi
xor eax, ecx
and esi, ecx
mov ecx, esi
shr ecx, 0x1f
add esi, esi
add esi, eax
adc edi, ecx
mov eax, dword [esp + 0x18]
test eax, eax
mov eax, dword [ebp + 0x14]
je 0x40edde
push eax
push dword [ebp + 0x10]
push edi
push esi
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
mov ecx, dword [ebp + 0x14]
add esp, 0x14
cmp eax, ecx
jne 0x40ef8c
add esi, ecx
mov dword [esp + 4], esi
adc edi, 0
mov dword [esp + 0xc], edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], 0
jmp 0x40ee8d
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x13
jmp 0x40e74b
mov ecx, edi
mov edi, dword [esp + 0x5c]
mov dword [esp + 4], esi
mov dword [esp + 0xc], ecx
test eax, eax
je 0x40ee8d
mov eax, dword [ebp + 8]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
push 0
push 0xfffffffffffffff1
push edi
call fcn.0040d970
add esp, 0xc
lea ecx, [esp + 0x40]
push eax
push ecx
push 0x40f2a0
mov esi, dword [esp + 0x14]
push esi
call fcn.0040d7c0
add esp, 0x10
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xac], eax
lea eax, [esp + 0xac]
push 4
push 0
push 0
push eax
push dword [ebp + 0x10]
push esi
call fcn.00403ca0
add esp, 0x18
cmp eax, 1
jne 0x40efbb
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xc], eax
push dword [esp + 8]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edi, eax
mov dword [esp + 8], ecx
or eax, ecx
je 0x40f0c9
mov dword [esp + 0x40], 0x8074b50
mov ecx, dword [esp + 0x68]
mov byte [esp + 0x44], cl
mov byte [esp + 0x45], ch
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x46], al
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x47], al
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
cmp dword [esp], 0
je 0x40efa8
mov byte [esp + 0x48], cl
mov byte [esp + 0x49], ch
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x4a], al
mov eax, edx
shr eax, 0x10
shr ecx, 0x18
mov byte [esp + 0x4b], cl
mov ecx, edx
shr ecx, 0x18
mov byte [esp + 0x4c], dl
mov byte [esp + 0x4d], dh
mov byte [esp + 0x4e], al
mov byte [esp + 0x4f], cl
mov ecx, edi
mov byte [esp + 0x50], cl
mov byte [esp + 0x51], ch
mov eax, edi
shr eax, 0x10
mov byte [esp + 0x52], al
mov eax, edi
shr eax, 0x18
mov byte [esp + 0x53], al
mov dword [esp + 0x64], 0x38
mov dword [esp + 0x58], 0x30
mov ecx, 0x28
mov dword [esp + 0x18], 0x18
mov dword [esp + 0x5c], 0x17
mov eax, dword [esp + 8]
mov byte [esp + 0x13], al
mov dword [esp + 0xa0], 0x16
mov dword [esp + 0x9c], 0x15
mov dword [esp + 0x98], 0x14
jmp 0x40f027
push dword [esp + 8]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0x13
jmp 0x40e74b
test edx, edx
je 0x40efd7
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x40e74b
push dword [esp + 8]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0xc
jmp 0x40e74b
mov dword [esp + 0x48], ecx
mov dword [esp + 0x64], 0x18
mov dword [esp + 0x58], 0x10
mov ecx, 8
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0xa0], 0xe
mov eax, edi
mov byte [esp + 0x13], al
mov dword [esp + 0x9c], 0xd
mov dword [esp + 0x98], 0xc
mov dword [esp + 0x18], 0x10
mov ebx, edi
mov edx, dword [esp + 8]
shrd ebx, edx, cl
mov eax, edx
shr eax, cl
test cl, 0x20
cmove eax, ebx
mov esi, edi
mov ecx, dword [esp + 0x58]
shrd esi, edx, cl
mov dword [esp + 0xa8], esi
movzx ebx, byte [esp + 0x13]
mov esi, dword [esp + 0x98]
mov byte [esp + esi + 0x40], bl
mov ebx, dword [esp + 0x9c]
mov byte [esp + ebx + 0x40], al
mov eax, edx
shr eax, cl
test cl, 0x20
cmove eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xa0]
mov byte [esp + ecx + 0x40], al
mov ecx, dword [esp + 0x64]
shrd edi, edx, cl
shr edx, cl
test cl, 0x20
cmove edx, edi
mov eax, dword [esp + 0x5c]
mov byte [esp + eax + 0x40], dl
lea eax, [esp + 0x40]
mov esi, dword [esp + 0x18]
push esi
push eax
push dword [esp + 0x14]
push dword [esp + 0x10]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x40e74b
mov eax, dword [esp + 0x18]
add dword [esp + 4], eax
adc dword [esp + 0xc], 0
cmp dword [esp], 0
je 0x40f11a
xor ecx, ecx
mov edx, 0xfffffffe
cmp edx, dword [esp + 0x20]
mov eax, 0
sbb eax, dword [esp + 0x24]
lea eax, [esp + 0x20]
cmovae eax, ecx
cmp edx, dword [esp + 0x28]
mov edx, 0
sbb edx, dword [esp + 0x2c]
lea esi, [esp + 0x38]
cmovae esi, ecx
lea edx, [esp + 0x28]
cmovae edx, ecx
lea ecx, [esp + 0xb0]
push eax
push esi
call fcn.0040f240
add esp, 8
mov dword [esp + 0x14], eax
movzx ebx, word [esp + 0x6c]
movzx esi, word [esp + 0x34]
movzx eax, word [esp + 0x14]
movzx edi, word [esp + 0x1c]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [esp + 0x68]
push dword [esp + 0x30]
push dword [esp + 0x30]
push 0
push 0
push ebx
push esi
push dword [esp + 0x8c]
push dword [esp + 0x64]
push dword [esp + 0x64]
push dword [esp + 0x5c]
push dword [esp + 0x5c]
push dword [esp + 0xdc]
push dword [ebp + 0x18]
push eax
push dword [esp + 0x44]
push edi
call fcn.0040f300
add esp, 0x4c
test eax, eax
je 0x40e74b
mov eax, dword [ebp + 8]
inc dword [eax + 0x10]
mov ecx, dword [esp + 4]
mov dword [eax], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ebx, 1
jmp 0x40e74d