Function at 0x40e060
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 edi, dword [ebp + 0x24]
mov esi, dword [ebp + 0x28]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], edi
test ecx, ecx
mov eax, 6
cmovns eax, ecx
mov ecx, edi
or ecx, esi
mov ebx, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 4], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
je 0x40e0c2
mov ecx, eax
and ecx, 0x400
jmp 0x40e0d6
mov ebx, eax
and ebx, 0x400
xor ecx, ecx
cmp dword [ebp + 0x14], 0
je 0x40e0dc
test ebx, ebx
jne 0x40e0dc
mov ebx, ecx
mov cx, 8
movzx edx, cx
lea ecx, [edx + 0x800]
test eax, 0x10000
cmove edx, ecx
mov dword [esp + 0x6c], edx
mov ecx, eax
xor ecx, 0xfffffff0
mov edx, eax
or edx, 0xf
and edx, ecx
mov dword [esp + 0x24], edx
sete cl
mov dword [esp + 0x44], ebx
test ebx, ebx
setne dl
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx + 0x48]
mov dword [esp + 8], ebx
test ebx, ebx
je 0x40e281
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x14], 2
jne 0x40e281
cmp dword [ebp + 0x14], 0
sete ch
cmp dword [ebp + 0x10], 0
setne dh
cmp dword [ebp + 0xc], 0
je 0x40e281
or dh, ch
je 0x40e281
cmp word [ebp + 0x1c], 0
setne ch
cmp dword [ebp + 0x18], 0
sete dh
test dh, ch
jne 0x40e281
cmp dword [esp + 0x24], 0xb
jae 0x40e281
mov ebx, dword [esp + 8]
cmp dword [ebx + 0x34], 0
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx + 0x10]
je 0x40e192
cmp ebx, 0xffffffff
jne 0x40e1a9
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 2
jmp 0x40e28b
test esi, esi
jne 0x40e19e
cmp ebx, 0xffff
jne 0x40e1a9
mov ebx, dword [esp + 8]
mov dword [ebx + 0x34], 1
or dl, cl
movzx edx, dl
mov ecx, eax
xor ecx, 0xfffffbff
or eax, 0x400
test eax, ecx
je 0x40e27a
mov ebx, dword [ebp + 0xc]
cmp byte [ebx], 0x2f
je 0x40e2a0
mov dword [esp + 0x14], edx
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x68], eax
push ebx
call fcn.00416820
add esp, 4
cmp eax, 0x10000
jae 0x40e2a0
mov dword [esp + 0x1c], eax
mov dword [esp], 0
mov ebx, 0xfffffffe
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
or edx, ecx
mov eax, 0
je 0x40e22c
mov edx, ecx
xor edx, ebx
mov eax, ecx
and eax, 0xfffffffe
lea eax, [edx + eax*2]
inc eax
mov edx, dword [ebp + 8]
and eax, dword [edx]
lea edx, [ebx + ecx]
inc edx
sub ecx, eax
and ecx, edx
mov eax, ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
movzx ebx, word [ebp + 0x1c]
xor edx, edx
mov dword [esp + 0xa4], ebx
mov eax, dword [esp + 0x1c]
add ebx, eax
setb dl
mov dword [esp + 0x64], ecx
add ebx, ecx
adc edx, 0
mov ecx, ebx
mov dword [esp + 0x18], ebx
add ecx, 0x4a
adc edx, 0
mov ebx, 0xfffffffe
cmp ebx, ecx
sbb dword [esp], edx
jae 0x40e2ac
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x40e28b
or edi, esi
mov ebx, dword [ebp + 0xc]
je 0x40e297
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 byte [ebx], 0x2f
jne 0x40e4d5
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x19
jmp 0x40e28b
mov edx, dword [esp + 8]
mov ecx, dword [edx + 0x34]
mov dword [esp], ecx
test ecx, ecx
mov ebx, dword [ebp + 0xc]
jne 0x40e326
shr eax, 0x1f
mov dword [esp + 0x60], eax
mov dword [esp], 0
mov edx, dword [esp + 0xa4]
add edx, dword [ebp + 0x38]
mov ecx, 0
adc ecx, 0xffffffff
add edx, dword [ebp + 0x40]
adc ecx, 0
mov eax, dword [esp + 0x1c]
add eax, eax
add edx, eax
adc ecx, dword [esp + 0x60]
add edx, dword [esp + 0x20]
adc ecx, 0
add edx, dword [esp + 0x64]
adc ecx, 0
mov eax, dword [ebp + 8]
add edx, dword [eax]
adc ecx, dword [eax + 4]
mov eax, dword [esp + 0x1c]
add edx, 0x72
mov edx, dword [esp + 8]
adc ecx, 0
cmp ecx, 0xffffffff
je 0x40e326
mov dword [edx + 0x34], 1
mov dword [esp], 1
xor ecx, ecx
test eax, eax
je 0x40e34b
cmp byte [eax + ebx - 1], 0x2f
mov ebx, dword [ebp + 0x14]
jne 0x40e34b
test ebx, ebx
jne 0x40e281
mov ecx, 0x10
or edi, esi
jne 0x40e281
mov dword [esp + 0x64], ecx
mov ecx, dword [esp]
test ecx, ecx
mov eax, 0x1c
cmove eax, ecx
mov ecx, dword [esp + 0x18]
add eax, ecx
add eax, 0x2e
mov ebx, edx
mov edx, dword [edx + 8]
cmp edx, eax
mov edi, dword [ebp + 8]
jae 0x40e3a3
test edx, edx
mov ecx, 1
cmovne ecx, edx
mov esi, ecx
add ecx, ecx
cmp esi, eax
jb 0x40e37b
push esi
mov ebx, dword [esp + 0xc]
push dword [ebx + 0xc]
push dword [ebx]
push dword [edi + 0x34]
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x40e51e
mov dword [ebx], eax
mov dword [ebx + 8], esi
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x18]
inc eax
cmp ecx, eax
jae 0x40e3e2
test ecx, ecx
mov edx, 1
cmovne edx, ecx
mov esi, edx
add edx, edx
cmp esi, eax
jb 0x40e3b8
push esi
mov ebx, dword [esp + 0xc]
push dword [ebx + 0x1c]
push dword [ebx + 0x10]
push dword [edi + 0x34]
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x40e51e
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x18], esi
xor eax, eax
cmp dword [ebp + 0x14], 0
mov edi, dword [esp + 4]
je 0x40e410
cmp dword [esp + 0x14], 0
jne 0x40e410
push 0x4df40
push 1
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x28]
add esp, 0xc
test eax, eax
je 0x40e61d
mov dword [esp], eax
mov ecx, dword [ebp + 8]
mov ebx, dword [esp + 0xc]
mov edx, ebx
mov esi, dword [esp + 0x20]
push esi
push edi
call fcn.0040ebf0
add esp, 8
test eax, eax
je 0x40e52a
cmp dword [esp + 0x14], 0
setne dl
mov eax, dword [esp + 0x28]
add eax, esi
mov ecx, dword [esp + 0x2c]
adc ecx, 0
add ebx, esi
mov esi, eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
adc edi, 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x70], xmm0
movups xmmword [esp + 0x7e], xmm0
cmp dword [esp + 0x44], 0
sete dh
and dh, dl
mov dl, dh
xor dl, 1
movzx eax, dl
shl eax, 3
mov dword [esp + 0x44], eax
mov eax, dword [esp + 8]
cmp dword [eax + 0x34], 0
je 0x40e53e
mov byte [esp + 0x20], dh
mov dword [esp + 8], 0
mov eax, 0xfffffffe
cmp eax, dword [esp + 0x30]
mov edx, 0
sbb edx, dword [esp + 0x34]
mov dword [esp + 4], edi
jae 0x40e62c
xor edx, edx
cmp eax, esi
mov eax, 0
sbb eax, ecx
lea eax, [esp + 0x28]
cmovae eax, edx
lea esi, [esp + 0x38]
lea edx, [esp + 0x30]
jmp 0x40e63f
mov edi, dword [ebp + 0x14]
push edi
push dword [ebp + 0x10]
push 0
mov edi, edx
call fcn.00402f90
add esp, 0xc
mov dword [esp + 0x68], eax
xor esi, esi
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], 0
cmp ecx, 4
mov eax, dword [esp + 0x24]
cmovb eax, esi
mov dword [esp + 0x24], eax
mov eax, 1
cmovb edi, eax
mov dword [esp + 0x14], edi
mov edi, ecx
jmp 0x40e1da
mov dword [edi + 0x1c], 0x10
jmp 0x40e28b
push dword [esp]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
jmp 0x40e28b
cmp dword [esp + 0x3c], 0
jne 0x40e9fa
test edi, edi
jne 0x40e9fa
mov dword [esp + 4], edi
mov dword [esp + 0x70], 0x4034b50
xor ebx, ebx
test dh, dh
mov edx, 0x14
cmovne edx, ebx
mov byte [esp + 0x74], dl
mov edx, dword [esp + 0x6c]
movzx eax, dx
mov byte [esp + 0x76], dl
mov byte [esp + 0x77], ah
mov eax, dword [esp + 0x44]
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 esi
mov edi, dword [ebp + 8]
push dword [edi + 0x44]
call dword [edi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x40e770
mov ecx, dword [esp + 0xc]
add ecx, 0x1e
mov eax, edi
mov edi, dword [esp + 4]
adc edi, 0
mov esi, dword [esp + 0x1c]
push esi
push dword [ebp + 0xc]
push edi
mov dword [esp + 0x18], ecx
push ecx
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x40e77c
mov eax, esi
mov esi, dword [esp + 0xc]
add esi, eax
adc edi, 0
mov edx, edi
xor eax, eax
mov dword [esp + 0x18], 0
jmp 0x40e79b
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x10
jmp 0x40e28b
cmp eax, esi
mov edx, 0
sbb edx, ecx
jae 0x40e664
lea eax, [esp + 0x28]
xor esi, esi
xor edx, edx
lea ebx, [esp + 0xb0]
mov ecx, ebx
push eax
push esi
call fcn.0040ec90
add esp, 8
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 8], ebx
jmp 0x40e66c
mov dword [esp + 0x18], 0
mov edi, dword [ebp + 8]
mov dword [esp + 0x70], 0x4034b50
xor ebx, ebx
cmp byte [esp + 0x20], 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 edx, dword [esp + 0x18]
lea edx, [edx + eax]
mov eax, dword [esp + 0x44]
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 esi
push dword [edi + 0x44]
call dword [edi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x40e770
mov ecx, edi
mov esi, dword [esp + 0xc]
lea eax, [esi + esi]
and eax, 0x3c
xor esi, 0x1e
add esi, eax
mov eax, dword [esp + 4]
adc eax, 0
mov edi, dword [esp + 0x1c]
push edi
push dword [ebp + 0xc]
mov dword [esp + 0xc], eax
push eax
push esi
push dword [ecx + 0x44]
call dword [ecx + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x40e77c
mov edx, dword [ebp + 8]
add esi, edi
mov edi, dword [esp + 4]
adc edi, 0
cmp dword [esp + 8], 0
je 0x40e797
lea eax, [esp + 0xb0]
mov ebx, dword [esp + 0x18]
push ebx
push eax
mov dword [esp + 0xc], edi
push edi
push esi
mov edi, edx
push dword [edx + 0x44]
call dword [edx + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x40e816
add esi, ebx
mov edx, dword [esp + 4]
adc edx, 0
mov eax, dword [esp + 8]
jmp 0x40e79b
mov dword [edi + 0x1c], 0x13
jmp 0x40e28d
push dword [esp]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0x13
jmp 0x40e28d
mov edx, edi
xor eax, eax
mov ebx, dword [ebp + 0x38]
mov dword [esp + 8], eax
test ebx, ebx
je 0x40e7c5
push ebx
push dword [ebp + 0x34]
mov edi, edx
push edx
push esi
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x40e822
add esi, ebx
adc edi, 0
mov edx, edi
mov ebx, dword [ebp + 0x14]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40e831
push ebx
push dword [ebp + 0x10]
mov edi, edx
push edx
push esi
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x40e9db
mov eax, esi
and eax, ebx
mov ecx, eax
shr ecx, 0x1f
add eax, eax
xor esi, ebx
add esi, eax
mov dword [esp + 0xc], esi
adc edi, ecx
mov dword [esp + 4], edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 0
jmp 0x40e8dd
mov dword [edi + 0x1c], 0x13
jmp 0x40e28b
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x13
jmp 0x40e28b
mov dword [esp + 0xc], esi
mov dword [esp + 4], edx
test ebx, ebx
je 0x40e8dd
mov eax, dword [ebp + 8]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
push 0
push 0xfffffffffffffff1
push dword [esp + 0x2c]
call fcn.0040d420
add esp, 0xc
lea ecx, [esp + 0x48]
push eax
push ecx
push 0x40ed00
mov esi, dword [esp + 0xc]
push esi
call fcn.0040d280
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.00403c80
add esp, 0x18
cmp eax, 1
jne 0x40ea09
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
push dword [esp]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edi, eax
mov dword [esp + 0x24], ecx
or eax, ecx
je 0x40eb14
mov dword [esp + 0x48], 0x8074b50
mov ecx, dword [esp + 0x68]
mov byte [esp + 0x4c], cl
mov byte [esp + 0x4d], ch
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x4e], al
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x4f], al
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
cmp dword [esp + 8], 0
je 0x40e9f6
mov byte [esp + 0x50], cl
mov byte [esp + 0x51], ch
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x52], al
mov eax, edx
shr eax, 0x10
shr ecx, 0x18
mov byte [esp + 0x53], cl
mov ecx, edx
shr ecx, 0x18
mov byte [esp + 0x54], dl
mov byte [esp + 0x55], dh
mov byte [esp + 0x56], al
mov byte [esp + 0x57], cl
mov ecx, edi
mov byte [esp + 0x58], cl
mov byte [esp + 0x59], ch
mov eax, edi
shr eax, 0x10
mov byte [esp + 0x5a], al
mov eax, edi
shr eax, 0x18
mov byte [esp + 0x5b], al
mov dword [esp], 0x38
mov dword [esp + 0x60], 0x30
mov ecx, 0x28
mov dword [esp + 0x14], 0x18
mov dword [esp + 0x20], 0x17
mov eax, dword [esp + 0x24]
mov byte [esp + 0x13], al
mov dword [esp + 0xa0], 0x16
mov dword [esp + 0x9c], 0x15
mov dword [esp + 0x98], 0x14
jmp 0x40ea73
push dword [esp]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0x13
jmp 0x40e28b
test edx, edx
je 0x40ea24
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x40e28b
push dword [esp]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0xc
jmp 0x40e28b
mov dword [esp + 0x50], ecx
mov dword [esp], 0x18
mov dword [esp + 0x60], 0x10
mov ecx, 8
mov dword [esp + 0x20], 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 + 0x14], 0x10
mov ebx, edi
mov edx, dword [esp + 0x24]
shrd ebx, edx, cl
mov eax, edx
shr eax, cl
test cl, 0x20
cmove eax, ebx
mov esi, edi
mov ecx, dword [esp + 0x60]
shrd esi, edx, cl
mov dword [esp + 0xa8], esi
movzx ebx, byte [esp + 0x13]
mov esi, dword [esp + 0x98]
mov byte [esp + esi + 0x48], bl
mov ebx, dword [esp + 0x9c]
mov byte [esp + ebx + 0x48], al
mov eax, edx
shr eax, cl
test cl, 0x20
cmove eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xa0]
mov byte [esp + ecx + 0x48], al
mov ecx, dword [esp]
shrd edi, edx, cl
shr edx, cl
test cl, 0x20
cmove edx, edi
mov eax, dword [esp + 0x20]
mov byte [esp + eax + 0x48], dl
lea eax, [esp + 0x48]
mov esi, dword [esp + 0x14]
push esi
push eax
push dword [esp + 0xc]
push dword [esp + 0x18]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x40e28b
mov eax, dword [esp + 0x14]
add dword [esp + 0xc], eax
adc dword [esp + 4], 0
cmp dword [esp + 8], 0
je 0x40eb66
xor ecx, ecx
mov edx, 0xfffffffe
cmp edx, dword [esp + 0x28]
mov eax, 0
sbb eax, dword [esp + 0x2c]
lea eax, [esp + 0x28]
cmovae eax, ecx
cmp edx, dword [esp + 0x30]
mov edx, 0
sbb edx, dword [esp + 0x34]
lea esi, [esp + 0x38]
cmovae esi, ecx
lea edx, [esp + 0x30]
cmovae edx, ecx
lea ecx, [esp + 0xb0]
push eax
push esi
call fcn.0040ec90
add esp, 8
mov dword [esp + 0x18], eax
movzx ebx, word [esp + 0x6c]
movzx esi, word [esp + 0x44]
movzx eax, word [esp + 0x18]
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 + 0x6c]
push dword [esp + 0x38]
push dword [esp + 0x38]
push 0
push 0
push ebx
push esi
push dword [esp + 0x8c]
push dword [esp + 0x64]
push dword [esp + 0x64]
push dword [esp + 0x64]
push dword [esp + 0x64]
push dword [esp + 0xdc]
push dword [ebp + 0x18]
push eax
push dword [esp + 0x4c]
push edi
call fcn.0040ed60
add esp, 0x4c
test eax, eax
je 0x40e28b
mov eax, dword [ebp + 8]
inc dword [eax + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
mov ecx, dword [esp + 4]
mov dword [eax + 4], ecx
mov ebx, 1
jmp 0x40e28d