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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x110
lea eax, [esp + 0x1e]
lea ecx, [esp + 0x1f]
lea edx, [esp + 0x4c]
lea esi, [esp + 0x28]
push eax
push ecx
push edx
push dword [ebp + 0x10]
push esi
call fcn.00413e60
add esp, 0x14
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
lea ecx, [esp + 0x10]
push 0
push 0xa
call fcn.00409f60
lea eax, [ebp + 0xc]
lea ecx, [ebp + 8]
test byte [esp + 0x10], 1
lea edx, [esp + 0x11]
je 0x40e8f8
mov edx, dword [esp + 0x18]
mov dword [esp + 0xc], edx
mov dword [esp + 0x24], edx
lea edx, [esp + 0x6c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x3c], 0
mov byte [esp + 0xb], 1
mov byte [esp + 0x1d], 0x45
mov esi, dword [ecx]
mov edi, dword [eax]
jmp 0x40e938
inc eax
mov dword [esi + 0xc], eax
mov edi, dword [esp + 4]
test esi, esi
je 0x40e950
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
je 0x40e970
xor ebx, ebx
test edi, edi
jne 0x40e958
jmp 0x40e993
mov bl, 1
xor esi, esi
test edi, edi
je 0x40e993
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
je 0x40e9b0
mov dword [esp + 4], edi
test bl, bl
jne 0x40e9e5
jmp 0x40eb7a
mov eax, dword [esi]
mov ebx, dword [eax + 0x24]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
call ebx
xor ecx, ecx
cmp eax, 0xffffffff
sete bl
je 0x40e98d
mov ecx, esi
mov esi, ecx
test edi, edi
jne 0x40e958
mov dword [esp + 4], 0
test bl, bl
je 0x40e9e5
jmp 0x40eb7e
mov eax, dword [edi]
mov dword [esp + 0x34], esi
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [section..00cfg]
mov ecx, edi
call esi
mov esi, dword [esp + 0x34]
mov dword [esp + 4], 0
cmp eax, 0xffffffff
sete al
je 0x40e9dd
mov dword [esp + 4], edi
cmp bl, al
je 0x40eb7e
movzx eax, byte [esp + 0x10]
test al, 1
mov ebx, dword [esp + 0xc]
je 0x40ea20
mov edi, dword [esp + 0x14]
lea ecx, [ebx + edi]
cmp dword [esp + 0x24], ecx
je 0x40ea2d
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
je 0x40eada
movzx eax, byte [eax]
jmp 0x40eaeb
mov edi, eax
shr edi, 1
lea ecx, [ebx + edi]
cmp dword [esp + 0x24], ecx
jne 0x40e9ff
test edi, edi
jle 0x40ea3f
lea ecx, [esp + 0x10]
push 0
push edi
call fcn.00409f60
jmp 0x40ea60
lea ecx, [edi + edi]
test al, 1
jne 0x40ea54
mov eax, ecx
add al, cl
mov byte [esp + 0x10], al
lea eax, [esp + 0x11]
jmp 0x40ea5c
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
mov byte [eax + ecx], 0
mov ecx, dword [esp + 0x10]
mov eax, ecx
and eax, 0xfffffffe
dec eax
test byte [esp + 0x10], 1
mov edx, 0xa
cmove eax, edx
test cl, 1
je 0x40eaa0
mov edx, dword [esp + 0x14]
mov ebx, eax
sub ebx, edx
ja 0x40eaad
test cl, 1
jne 0x40eb5a
mov ecx, eax
add cl, al
mov byte [esp + 0x10], cl
lea ecx, [esp + 0x11]
jmp 0x40eb62
mov edx, ecx
shr edx, 1
and edx, 0x7f
mov ebx, eax
sub ebx, edx
jbe 0x40ea86
lea ecx, [esp + 0x10]
push 0
push ebx
call fcn.00409f60
test byte [esp + 0x10], 1
lea ebx, [esp + 0x11]
je 0x40eac8
mov ebx, dword [esp + 0x18]
add edi, ebx
mov dword [esp + 0x24], edi
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
jne 0x40ea0b
mov eax, dword [esi]
mov edi, dword [eax + 0x24]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
call edi
movsx ecx, byte [esp + 0x1f]
movsx edx, byte [esp + 0x1e]
movsx eax, al
lea edi, [esp + 0x4c]
push edi
lea edi, [esp + 0x40]
push edi
lea edi, [esp + 0x28]
push edi
lea edi, [esp + 0x78]
push edi
lea edi, [esp + 0x38]
push edi
push edx
push ecx
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x2c], ebx
push ebx
lea ecx, [esp + 0x41]
push ecx
lea ecx, [esp + 0x33]
push ecx
push eax
call fcn.00414020
add esp, 0x30
test eax, eax
jne 0x40eb7e
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
jne 0x40e930
mov eax, dword [esi]
mov edi, dword [eax + 0x28]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
call edi
mov edi, dword [esp + 4]
jmp 0x40e938
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov byte [ecx + eax], 0
test byte [esp + 0x10], 1
lea ebx, [esp + 0x11]
jne 0x40eac4
jmp 0x40eac8
mov dword [esp + 4], edi
mov edi, dword [esp + 0xc]
movzx eax, byte [esp + 0x28]
test al, 1
je 0x40eb95
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x40eb9b
jmp 0x40ebc3
shr eax, 1
test eax, eax
je 0x40ebc3
cmp byte [esp + 0xb], 0
je 0x40ebc3
mov eax, dword [esp + 0x20]
mov ecx, eax
lea edx, [esp + 0x6c]
sub ecx, edx
cmp ecx, 0x9f
jg 0x40ebc3
mov ecx, dword [esp + 0x3c]
lea edx, [eax + 4]
mov dword [esp + 0x20], edx
mov dword [eax], ecx
push dword [ebp + 0x14]
push dword [esp + 0x28]
push edi
call fcn.0042c8c0
add esp, 0xc
fstp qword [esp + 0x40]
movsd xmm0, qword [esp + 0x40]
mov eax, dword [ebp + 0x18]
movsd qword [eax], xmm0
mov edx, dword [esp + 0x20]
movzx eax, byte [esp + 0x28]
mov ebx, eax
and bl, 1
mov dword [esp + 0xc], eax
mov edi, esi
je 0x40ec00
mov eax, dword [esp + 0x2c]
jmp 0x40ec02
shr eax, 1
mov esi, edx
lea ecx, [esp + 0x6c]
sub esi, ecx
cmp esi, 5
mov esi, edi
jl 0x40eced
test eax, eax
je 0x40eced
lea edi, [edx - 4]
lea eax, [esp + 0x6c]
cmp edi, eax
seta bh
cmp eax, edx
je 0x40ec6a
test bh, bh
je 0x40ec6a
mov dword [esp + 0x34], esi
lea ecx, [esp + 0x70]
mov eax, edi
mov edx, edi
nop dword [eax]
mov esi, dword [ecx - 4]
mov edi, dword [edx]
mov dword [ecx - 4], edi
mov dword [edx], esi
add edx, 0xfffffffc
lea esi, [ecx + 4]
cmp ecx, edx
mov ecx, esi
jb 0x40ec40
movzx ecx, byte [esp + 0x28]
mov dword [esp + 0xc], ecx
mov ebx, ecx
and bl, 1
mov esi, dword [esp + 0x34]
mov edi, eax
test bl, bl
je 0x40ec7c
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x6c]
cmp edi, eax
ja 0x40ec88
jmp 0x40ecd2
lea edx, [esp + 0x29]
lea eax, [esp + 0x6c]
cmp edi, eax
jbe 0x40ecd2
test bl, bl
je 0x40ec92
mov ecx, dword [esp + 0x2c]
jmp 0x40ec9b
mov eax, dword [esp + 0xc]
shr al, 1
movzx ecx, al
add ecx, edx
jmp 0x40ecbd
mov eax, ecx
sub eax, edx
xor ebx, ebx
cmp eax, 2
setge bl
add edx, ebx
mov eax, dword [esp + 0x38]
add eax, 4
mov dword [esp + 0x38], eax
cmp eax, edi
jae 0x40ecd2
movzx ebx, byte [edx]
mov eax, ebx
dec al
cmp al, 0x7d
ja 0x40eca0
mov eax, dword [esp + 0x38]
cmp dword [eax], ebx
je 0x40eca0
jmp 0x40ece4
movzx ecx, byte [edx]
mov eax, ecx
dec al
cmp al, 0x7d
ja 0x40eced
mov eax, dword [edi]
dec eax
cmp eax, ecx
jb 0x40eced
mov eax, dword [ebp + 0x14]
mov dword [eax], 4
test esi, esi
je 0x40ed07
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
je 0x40ed17
xor ebx, ebx
cmp dword [esp + 4], 0
jne 0x40ed3a
jmp 0x40eda6
mov bl, 1
xor esi, esi
cmp dword [esp + 4], 0
jne 0x40ed3a
jmp 0x40eda6
mov eax, dword [esi]
mov edi, dword [eax + 0x24]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
call edi
xor ecx, ecx
cmp eax, 0xffffffff
sete bl
cmove esi, ecx
cmp dword [esp + 4], 0
je 0x40eda6
mov eax, dword [esp + 4]
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 4]
cmp eax, dword [ecx + 0x10]
mov eax, dword [esp + 4]
jne 0x40ed6a
mov dword [esp + 4], eax
mov eax, dword [eax]
mov edi, dword [eax + 0x24]
mov ecx, edi
call dword [section..00cfg]
mov ecx, dword [esp + 4]
call edi
cmp eax, 0xffffffff
je 0x40eda6
test bl, bl
jne 0x40ed74
mov eax, dword [ebp + 0x14]
or byte [eax], 2
test byte [esp + 0x10], 1
je 0x40ed87
push dword [esp + 0x18]
call fcn.00408930
add esp, 4
test byte [esp + 0x28], 1
je 0x40ed9a
push dword [esp + 0x30]
call fcn.00408930
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
test bl, bl
jne 0x40ed6e
jmp 0x40ed74