Function at 0x40f930
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.00414f00
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.0040b000
lea eax, [ebp + 0xc]
lea ecx, [ebp + 8]
test byte [esp + 0x10], 1
lea edx, [esp + 0x11]
je 0x40f998
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 0x40f9d8
inc eax
mov dword [esi + 0xc], eax
mov edi, dword [esp + 4]
test esi, esi
je 0x40f9f0
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
je 0x40fa10
xor ebx, ebx
test edi, edi
jne 0x40f9f8
jmp 0x40fa33
mov bl, 1
xor esi, esi
test edi, edi
je 0x40fa33
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
je 0x40fa50
mov dword [esp + 4], edi
test bl, bl
jne 0x40fa85
jmp 0x40fc1a
mov eax, dword [esi]
mov ebx, dword [eax + 0x24]
mov ecx, ebx
call dword [section.......]
mov ecx, esi
call ebx
xor ecx, ecx
cmp eax, 0xffffffff
sete bl
je 0x40fa2d
mov ecx, esi
mov esi, ecx
test edi, edi
jne 0x40f9f8
mov dword [esp + 4], 0
test bl, bl
je 0x40fa85
jmp 0x40fc1e
mov eax, dword [edi]
mov dword [esp + 0x34], esi
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [section.......]
mov ecx, edi
call esi
mov esi, dword [esp + 0x34]
mov dword [esp + 4], 0
cmp eax, 0xffffffff
sete al
je 0x40fa7d
mov dword [esp + 4], edi
cmp bl, al
je 0x40fc1e
movzx eax, byte [esp + 0x10]
test al, 1
mov ebx, dword [esp + 0xc]
je 0x40fac0
mov edi, dword [esp + 0x14]
lea ecx, [ebx + edi]
cmp dword [esp + 0x24], ecx
je 0x40facd
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
je 0x40fb7a
movzx eax, byte [eax]
jmp 0x40fb8b
mov edi, eax
shr edi, 1
lea ecx, [ebx + edi]
cmp dword [esp + 0x24], ecx
jne 0x40fa9f
test edi, edi
jle 0x40fadf
lea ecx, [esp + 0x10]
push 0
push edi
call fcn.0040b000
jmp 0x40fb00
lea ecx, [edi + edi]
test al, 1
jne 0x40faf4
mov eax, ecx
add al, cl
mov byte [esp + 0x10], al
lea eax, [esp + 0x11]
jmp 0x40fafc
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 0x40fb40
mov edx, dword [esp + 0x14]
mov ebx, eax
sub ebx, edx
ja 0x40fb4d
test cl, 1
jne 0x40fbfa
mov ecx, eax
add cl, al
mov byte [esp + 0x10], cl
lea ecx, [esp + 0x11]
jmp 0x40fc02
mov edx, ecx
shr edx, 1
and edx, 0x7f
mov ebx, eax
sub ebx, edx
jbe 0x40fb26
lea ecx, [esp + 0x10]
push 0
push ebx
call fcn.0040b000
test byte [esp + 0x10], 1
lea ebx, [esp + 0x11]
je 0x40fb68
mov ebx, dword [esp + 0x18]
add edi, ebx
mov dword [esp + 0x24], edi
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
jne 0x40faab
mov eax, dword [esi]
mov edi, dword [eax + 0x24]
mov ecx, edi
call dword [section.......]
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.004150c0
add esp, 0x30
test eax, eax
jne 0x40fc1e
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
jne 0x40f9d0
mov eax, dword [esi]
mov edi, dword [eax + 0x28]
mov ecx, edi
call dword [section.......]
mov ecx, esi
call edi
mov edi, dword [esp + 4]
jmp 0x40f9d8
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 0x40fb64
jmp 0x40fb68
mov dword [esp + 4], edi
mov edi, dword [esp + 0xc]
movzx eax, byte [esp + 0x28]
test al, 1
je 0x40fc35
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x40fc3b
jmp 0x40fc63
shr eax, 1
test eax, eax
je 0x40fc63
cmp byte [esp + 0xb], 0
je 0x40fc63
mov eax, dword [esp + 0x20]
mov ecx, eax
lea edx, [esp + 0x6c]
sub ecx, edx
cmp ecx, 0x9f
jg 0x40fc63
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.0042d960
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 0x40fca0
mov eax, dword [esp + 0x2c]
jmp 0x40fca2
shr eax, 1
mov esi, edx
lea ecx, [esp + 0x6c]
sub esi, ecx
cmp esi, 5
mov esi, edi
jl 0x40fd8d
test eax, eax
je 0x40fd8d
lea edi, [edx - 4]
lea eax, [esp + 0x6c]
cmp edi, eax
seta bh
cmp eax, edx
je 0x40fd0a
test bh, bh
je 0x40fd0a
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 0x40fce0
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 0x40fd1c
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x6c]
cmp edi, eax
ja 0x40fd28
jmp 0x40fd72
lea edx, [esp + 0x29]
lea eax, [esp + 0x6c]
cmp edi, eax
jbe 0x40fd72
test bl, bl
je 0x40fd32
mov ecx, dword [esp + 0x2c]
jmp 0x40fd3b
mov eax, dword [esp + 0xc]
shr al, 1
movzx ecx, al
add ecx, edx
jmp 0x40fd5d
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 0x40fd72
movzx ebx, byte [edx]
mov eax, ebx
dec al
cmp al, 0x7d
ja 0x40fd40
mov eax, dword [esp + 0x38]
cmp dword [eax], ebx
je 0x40fd40
jmp 0x40fd84
movzx ecx, byte [edx]
mov eax, ecx
dec al
cmp al, 0x7d
ja 0x40fd8d
mov eax, dword [edi]
dec eax
cmp eax, ecx
jb 0x40fd8d
mov eax, dword [ebp + 0x14]
mov dword [eax], 4
test esi, esi
je 0x40fda7
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
je 0x40fdb7
xor ebx, ebx
cmp dword [esp + 4], 0
jne 0x40fdda
jmp 0x40fe46
mov bl, 1
xor esi, esi
cmp dword [esp + 4], 0
jne 0x40fdda
jmp 0x40fe46
mov eax, dword [esi]
mov edi, dword [eax + 0x24]
mov ecx, edi
call dword [section.......]
mov ecx, esi
call edi
xor ecx, ecx
cmp eax, 0xffffffff
sete bl
cmove esi, ecx
cmp dword [esp + 4], 0
je 0x40fe46
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 0x40fe0a
mov dword [esp + 4], eax
mov eax, dword [eax]
mov edi, dword [eax + 0x24]
mov ecx, edi
call dword [section.......]
mov ecx, dword [esp + 4]
call edi
cmp eax, 0xffffffff
je 0x40fe46
test bl, bl
jne 0x40fe14
mov eax, dword [ebp + 0x14]
or byte [eax], 2
test byte [esp + 0x10], 1
je 0x40fe27
push dword [esp + 0x18]
call fcn.004099d0
add esp, 4
test byte [esp + 0x28], 1
je 0x40fe3a
push dword [esp + 0x30]
call fcn.004099d0
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
test bl, bl
jne 0x40fe0e
jmp 0x40fe14