Function at 0x409253
Capabilities:
Get common file path
Get file size

Disassembly:
mov eax, 0x42018e
call fcn.00412bcc
sub esp, 0x538
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x10]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], bl
mov byte [ebp - 4], 1
or dword [esi + 0x34], 0xffffffff
or dword [esi + 0x38], 0xffffffff
push 0x105
lea eax, [ebp - 0x12f]
push ebx
push eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov word [esi + 0x30], bx
mov byte [ebp - 0x130], bl
call fcn.004122b0
add esp, 0xc
call fcn.00409cba
cmp eax, 3
jae 0x4092de
push str.Local1717
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
je 0x4092de
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
call fcn.00409cba
cmp eax, 3
jae 0x4092f5
push str.Global971
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp dword [ebp + 8], 0
jne 0x409394
mov ecx, dword [0x42e66c]
lea eax, [ecx + 0xbc]
push eax
push 1
call fcn.00404c3d
cmp dword [eax], ebx
je 0x409330
mov ecx, dword [0x42e66c]
lea eax, [ecx + 0xbc]
push eax
push 1
call fcn.00404c3d
push ebx
call dword [eax]
mov ebx, eax
mov ecx, dword [0x42e66c]
lea eax, [ecx + 0xb4]
push eax
push 1
call fcn.00404c3d
cmp dword [eax], 0
je 0x409370
mov ecx, dword [0x42e66c]
lea eax, [ecx + 0xb4]
push eax
push 1
call fcn.00404c3d
push 0x105
lea ecx, [ebp - 0x130]
push ecx
push ebx
call dword [eax]
xor ebx, ebx
jmp 0x409374
xor ebx, ebx
mov eax, ebx
test eax, eax
je 0x4094f4
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00410476
pop ecx
pop ecx
mov byte [ebp - 4], 2
jmp 0x4093a6
push dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.00410476
pop ecx
pop ecx
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call fcn.0040959e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004015ab
mov ecx, dword [0x42e66c]
lea eax, [ecx + 0x54]
push eax
push 1
call fcn.00404c3d
cmp dword [eax], ebx
je 0x4093fd
cmp dword [edi + 0x14], 0x10
jb 0x4093d7
mov edi, dword [edi]
mov ecx, dword [0x42e66c]
lea eax, [ecx + 0x54]
push eax
push 1
call fcn.00404c3d
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push edi
call dword [eax]
jmp 0x4093ff
mov eax, ebx
mov dword [esi + 0x34], eax
cmp eax, 0xffffffff
je 0x409492
mov ecx, dword [0x42e66c]
lea eax, [ecx + 0x58]
push eax
push 1
call fcn.00404c3d
cmp dword [eax], ebx
je 0x40943e
mov ecx, dword [0x42e66c]
lea eax, [ecx + 0x58]
push eax
push 1
call fcn.00404c3d
push ebx
push ebx
push ebx
push 2
push ebx
push dword [esi + 0x34]
call dword [eax]
jmp 0x409440
mov eax, ebx
mov dword [esi + 0x38], eax
cmp eax, 0xffffffff
je 0x409492
mov ecx, dword [0x42e66c]
lea eax, [ecx + 0xfc]
push eax
push 1
call fcn.00404c3d
cmp dword [eax], ebx
je 0x409480
mov ecx, dword [0x42e66c]
lea eax, [ecx + 0xfc]
push eax
push 1
call fcn.00404c3d
push ebx
push ebx
push ebx
push 4
push dword [esi + 0x38]
call dword [eax]
jmp 0x409482
mov eax, ebx
push ebx
push dword [esi + 0x34]
mov dword [esi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x28], eax
cmp dword [esi + 0x2c], ebx
je 0x4094f4
call fcn.00409cba
cmp eax, 3
jae 0x4094ae
push str.Global750
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, dword [esi + 0x2c]
call fcn.00409cba
cmp eax, 3
jae 0x4094cd
lea eax, [ebp - 0x544]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [edi + 0x3c]
add ecx, dword [esi + 0x2c]
mov eax, dword [ecx + 0x9c]
add eax, dword [ecx + 0x98]
cmp eax, dword [esi + 0x28]
jne 0x4094f4
push dword [esi + 0x28]
mov ecx, esi
push dword [esi + 0x2c]
call fcn.00409c46
mov byte [esi + 0x30], al
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4