Function at 0x407140
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e79bc
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x6780cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x6830c4]
test esi, esi
jne 0x4071b5
push 0x54
call fcn.00459629
mov esi, eax
add esp, 4
mov dword [ebp - 0x54], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4071a6
push 0x54
push 0
push esi
call fcn.005b9e00
add esp, 0xc
mov ecx, esi
call fcn.00409160
mov esi, eax
jmp 0x4071a8
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [0x6830c4], esi
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x38], eax
call fcn.0040a770
mov esi, dword [esi + 4]
mov eax, dword [esi]
test eax, eax
je 0x40720f
push str.finalize
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40720f
push str.Calling_the_finalize_function_of_the_applet
push 0x6424c4
push 0x6424c4
push str.CoreManager
push str.C3App
push 0x14
call fcn.004090b0
add esp, 0x18
mov ecx, edi
push 0
call dword [0x5feac0]
call edi
add esp, 4
jmp 0x407232
push str.The_applet_does_not_have_a_finalize_method_exposed
push 0x6424c4
push 0x6424c4
push str.CoreManager
push str.C3App
push 0x28
call fcn.004090b0
add esp, 0x18
push str.Unloading_Core_applet_...
push 0x6424c4
push 0x6424c4
push str.CoreManager
push str.C3App
push 0x1e
call fcn.004090b0
mov eax, dword [esi]
add esp, 0x18
test eax, eax
je 0x40726e
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x40726e
mov dword [esi], 0
jmp 0x407291
push str.Unable_to_properly_unload_core
push 0x6424c4
push 0x6424c4
push str.CoreManager
push str.C3App
push 0x28
call fcn.004090b0
add esp, 0x18
push str.Unloading_Core_applet_complete.
push 0x6424c4
push 0x6424c4
push str.CoreManager
push str.C3App
push 0x1e
call fcn.004090b0
mov esi, dword [0x6830c4]
add esp, 0x18
test esi, esi
je 0x4072da
mov ecx, esi
call fcn.00409900
push 0x54
push esi
call fcn.005a5f31
add esp, 8
mov dword [0x6830c4], 0
cmp dword [ebp - 0x38], 0
je 0x407686
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 1
call fcn.0042ac80
push 0x17
push 0x646474
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
call fcn.00403460
mov byte [ebp - 4], 2
mov esi, 2
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4073c7
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x4073c7
lea edi, [ecx + 0xb]
xor ecx, ecx
add edi, eax
mov eax, edi
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005c3679
mov esi, eax
add esp, 4
test esi, esi
je 0x4073c2
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x34]
cmovae ecx, dword [ebp - 0x34]
push ecx
push edi
push esi
call fcn.005c3615
add esp, 0xc
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 8
cmovae eax, dword [ebp - 0x50]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4073a0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x34]
call fcn.00404650
push esi
call fcn.005bccf3
add esp, 4
mov esi, 2
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x3c]
cmp ecx, 8
jb 0x407405
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4073fb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4076a3
push ecx
push edx
call fcn.005a5f31
add esp, 8
push 0
push 0x6424c4
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
call fcn.00403460
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4074b2
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x4074b2
lea edi, [ecx + 0xb]
xor ecx, ecx
add edi, eax
mov eax, edi
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005c3679
mov esi, eax
add esp, 4
test esi, esi
je 0x4074b2
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x34]
cmovae ecx, dword [ebp - 0x34]
push ecx
push edi
push esi
call fcn.005c3615
add esp, 0xc
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 8
cmovae eax, dword [ebp - 0x50]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407490
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x34]
call fcn.00404650
push esi
call fcn.005bccf3
add esp, 4
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x3c]
cmp ecx, 8
jb 0x4074f0
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4074e6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4076a8
push ecx
push edx
call fcn.005a5f31
add esp, 8
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40761d
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x38], 2
jne 0x4075df
push 0x12
push str.__closeWindowtrue
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
call fcn.00403460
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
je 0x407594
movups xmm0, xmmword [ebp - 0x50]
mov dword [eax], 0
mov ecx, 7
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x40]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [ebp - 0x18], 0x18
mov word [ebp - 0x50], ax
jmp 0x4075a4
lea ecx, [ebp - 0x50]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.004079b0
mov ecx, dword [ebp - 0x3c]
mov byte [ebp - 4], 4
cmp ecx, 8
jb 0x4075df
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4075d5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4076ad
push ecx
push edx
call fcn.005a5f31
add esp, 8
push ecx
lea eax, [ebp - 0x38]
mov dword [ebp - 0x54], 0
push eax
push ecx
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0
push eax
push ecx
lea eax, [ebp - 0x54]
mov dword [ebp - 0x38], 0
push eax
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x34]
call fcn.0042ba20
add esp, 0x18
lea ecx, [ebp - 0x1c]
test al, al
jne 0x40764b
call fcn.004076c0
mov ecx, dword [ebp - 0x20]
cmp ecx, 8
jb 0x407686
mov edx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40767c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4076ad
jmp 0x40767c
call fcn.004076c0
mov ecx, dword [ebp - 0x20]
cmp ecx, 8
jb 0x407686
mov edx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40767c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4076ad
push ecx
push edx
call fcn.005a5f31
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a5aba
mov esp, ebp
pop ebp
ret
call fcn.005bd02a
call fcn.005bd02a
call fcn.005bd02a
int3