Function at 0x419180
Capabilities:
Check if file exists
Check mutex on windows
Read file on windows
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x254
push 0xffffffffffffffff
push 0x47602e
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x4a6024]
xor eax, ebp
mov dword [ebp + 0x250], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x10]
push eax
call fcn.00419ca0
mov dword [ebp - 4], 0
lea esi, [edi + 0x190]
push eax
mov ecx, esi
mov dword [ebp - 0x24], esi
call fcn.00405ad0
mov dword [ebp - 4], 0xffffffff
or ebx, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x419206
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, esi
lea ecx, [ebp - 0x10]
call fcn.00423540
mov dword [ebp - 4], 2
lea ecx, [edi + 0x198]
push eax
call fcn.00405ad0
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x419244
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [edi + 0x198]
lea esi, [edi + 0x194]
push eax
mov ecx, esi
call fcn.00405ad0
mov edx, dword [esi]
mov ecx, dword [edx - 0xc]
mov dword [ebp - 0x10], ecx
test ecx, ecx
jle 0x4192be
lea eax, [ecx - 1]
test eax, eax
js 0x41971a
cmp eax, ecx
jg 0x41971a
cmp word [edx + eax*2], 0x5c
je 0x4192be
mov eax, dword [edx - 8]
lea edi, [ecx + 1]
mov ecx, 1
sub eax, edi
sub ecx, dword [edx - 4]
or eax, ecx
jge 0x41929a
push edi
mov ecx, esi
call fcn.00404dc0
mov eax, dword [esi]
mov edx, 0x5c
mov ecx, dword [ebp - 0x10]
mov word [eax + ecx*2], dx
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x41971a
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [esi]
mov word [eax + edi*2], cx
lea eax, [ebp - 0x10]
push eax
call fcn.00419db0
mov dword [ebp - 4], 4
mov ecx, esi
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00404870
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4192fc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 4
push str..ini
mov ecx, esi
call fcn.00404870
lea eax, [ebp]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x44], 0x48ec08
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 6
cmp eax, 0xffffffff
jne 0x419336
xor esi, esi
jmp 0x4196d5
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x492a1c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x38], 0x492a04
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 9
mov eax, dword [ebp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x41946b
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], 0x48ec3c
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0xa
cmp esi, 0xffffffff
jne 0x4193ba
mov byte [ebp - 4], 9
mov dword [ebp - 0x18], 0x48ec3c
push eax
jmp 0x419462
sub dword [ebp - 0x10], 2
lea eax, [ebp - 0x48]
push 0
push eax
push 2
push esi
mov dword [ebp - 0x4c], 2
mov dword [ebp - 0x48], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x419452
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
shr eax, 1
push eax
push 0x78
call fcn.00424a20
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 4], 1
jle 0x41940b
push dword [eax - 0xc]
lea ecx, [ebp - 0x1c]
call fcn.00404cb0
mov eax, dword [ebp - 0x1c]
push 0
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419434
cmp dword [ebp - 0x20], 0
je 0x419434
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x38]
call fcn.0043a370
jmp 0x419434
mov byte [ebp - 4], 0xa
mov eax, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x419452
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov dword [ebp - 0x18], 0x48ec3c
test esi, esi
je 0x41946b
push esi
call edi
mov dword [ebp - 0x14], 0
push ecx
lea ecx, [ebp - 0xe8]
call fcn.0042fd70
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0xe8]
call fcn.004309b0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x38]
push eax
mov ecx, edi
call fcn.0041ad10
lea ecx, [ebp - 0x54]
call fcn.0041b100
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x38]
call fcn.004399c0
test al, al
je 0x4194fe
mov ecx, dword [ebp - 0x4c]
lea ecx, [ecx - 0x10]
call fcn.004058b0
mov esi, eax
lea ecx, [esi + 0x10]
mov dword [ebp - 0x20], ecx
mov byte [ebp - 4], 0x11
cmp dword [esi + 4], 0
je 0x4194e6
lea eax, [ebp - 0x20]
mov byte [0x4a89dc], 1
push eax
mov ecx, 0x4a89a4
call fcn.00427960
mov byte [ebp - 4], 0xf
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4194fe
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x54]
call fcn.0041b1d0
lea ecx, [ebp - 0xe8]
call fcn.004304e0
test al, al
mov byte [edi + 5], al
lea ebx, [edi + 0x190]
push ebx
lea ecx, [edi + 8]
sete byte [0x4a6ac0]
call fcn.004332c0
lea ecx, [ebp - 0xe8]
call fcn.00430830
push eax
lea ecx, [edi + 0x74]
call fcn.00405ad0
push ecx
mov dword [edi + 0x4c], 0
or dword [edi + 0x4c], 3
mov byte [edi + 0xc8], 1
mov dword [edi + 0x98], 3
add edi, 0x118
push 0
push 0xdc
mov ecx, edi
call fcn.00435f60
push ebx
mov ecx, edi
call fcn.00405ad0
push edi
lea ecx, [edi + 8]
lea ebx, [edi + 4]
call fcn.00405ad0
lea ecx, [edi + 8]
call fcn.0042be60
mov edx, 0xa1
lea ecx, [ebp - 0x10]
call fcn.00426f80
mov byte [ebp - 4], 0x13
push dword [edi + 8]
push dword [ebp - 0x10]
push ebx
call fcn.00422e30
add esp, 0xc
mov byte [ebp - 4], 0xe
or esi, 0xffffffff
mov edi, dword [ebp - 0x10]
mov eax, esi
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4195d2
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x24]
call fcn.00423540
mov byte [ebp - 4], 0x15
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x419605
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.Global_MSIExecute
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
mov dword [ebp - 0x18], 0x48ec3c
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0x17
test esi, esi
jne 0x419650
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x419643
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x18], 0x48ec3c
jmp 0x419677
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x18], 0x48ec3c
jmp 0x4196a8
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41968e
mov byte [ebp - 4], 0xe
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov dword [ebp - 0x18], 0x48ec3c
call eax
mov dword [ebp - 0x14], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0xe8]
push eax
mov ecx, edi
call fcn.0041a2a0
mov esi, eax
mov dword [edi], esi
jmp 0x4196ad
mov byte [ebp - 4], 0xe
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov dword [ebp - 0x18], 0x48ec3c
call eax
mov dword [ebp - 0x14], 0
mov esi, 1
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xe8]
call fcn.004197d0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x38]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x34]
call fcn.0041c050
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x44], 0x48ec08
test eax, eax
je 0x4196f5
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x40], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.00452869
lea esp, [ebp + 0x254]
pop ebp
ret
push 0x80070057
call fcn.00402f30
int3