Function at 0x40db40
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x143c
call fcn.00484d50
mov eax, dword [0x4e7d04]
xor eax, esp
mov dword [esp + 0x1434], eax
push ebx
push ebp
push esi
push edi
push 0x206
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x123e]
xor eax, eax
push ebx
push ecx
mov edi, 1
mov word [esp + 0x1244], ax
call fcn.00482260
mov eax, dword [0x4ec0b8]
mov ecx, dword [eax + 0x18]
add esp, 0xc
push 0x104
lea edx, [esp + 0x123c]
push edx
push 0x4ec0b8
call ecx
lea eax, [esp + 0x1238]
lea ecx, [eax + 2]
jmp 0x40dbb0
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x40dbb0
sub eax, ecx
sar eax, 1
push eax
lea edx, [esp + 0x123c]
push edx
lea ecx, [esi + 8]
call fcn.00404340
push 0x206
lea ecx, [esp + 0x1036]
xor eax, eax
push ebx
push ecx
xor ebp, ebp
mov word [esp + 0x103c], ax
call fcn.00482260
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x4ec0b8]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [eax + 8]
push 0x104
lea edx, [esp + 0x1040]
push edx
push 0x4ec0b8
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call ecx
test eax, eax
je 0x40dd62
cmp dword [esp + 0x14], ebx
je 0x40dd2f
push 0x800
lea edx, [esp + 0x834]
push ebx
push edx
call fcn.00482260
add esp, 0xc
push 0x800
lea eax, [esp + 0x34]
push ebx
push eax
call fcn.00482260
add esp, 0xc
lea ecx, [esp + 0x1030]
push ecx
lea edx, [esp + 0x123c]
push edx
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x1030]
push ecx
push edx
lea eax, [esp + 0x838]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40dcbe
lea edx, [esp + 0x30]
push edx
push str.ERROR:_source_file_DO_NOT_exists___s
call fcn.0041aa00
add esp, 8
xor edi, edi
jmp 0x40dd2f
lea eax, [esp + 0x30]
push eax
push esi
lea ecx, [esp + 0x838]
call fcn.0040ddd0
inc ebp
mov dword [esp + 0x1c], ebp
fild dword [esp + 0x1c]
and edi, eax
fidiv dword [esp + 0x10]
fmul qword [0x4d57c0]
fadd qword [0x4d57b8]
call fcn.00488740
push eax
mov edx, esi
mov ecx, 0x40e8a0
lea eax, [esp + 0x24]
call fcn.00410230
mov ecx, dword [0x4ec05c]
add esp, 4
cmp ecx, ebx
je 0x40dd1f
mov ecx, dword [ecx + 4]
push ebx
push eax
push 0xbba
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x20], vtable.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x4ec0b8]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [eax + 8]
push 0x104
lea edx, [esp + 0x1040]
push edx
push 0x4ec0b8
call ecx
test eax, eax
jne 0x40dc31
call fcn.0040e9a0
mov edx, dword [0x4ec0b8]
mov eax, dword [edx + 0x14]
push 0x4ec0b8
call eax
and edi, eax
push edi
mov edx, esi
mov ecx, 0x40e8c0
lea eax, [esp + 0x24]
call fcn.00410230
mov ecx, dword [0x4ec05c]
add esp, 4
cmp ecx, ebx
je 0x40dda8
mov ecx, dword [ecx + 4]
push ebx
push eax
push 0xbba
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x1444]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004820d9
add esp, 0x143c
ret