Function at 0x4982d3
Capabilities:
Check if file exists
Create directory

Disassembly:
mov eax, 0x4e4cce
call fcn.004d0500
sub esp, 0x104
mov eax, dword [0x52d320]
push ebx
push esi
mov esi, ecx
push edi
push dword [ebp + 8]
xor eax, ebp
lea ebx, [esi + 0x2b0]
mov ecx, ebx
mov dword [ebp - 0x10], eax
call fcn.0049e8c0
mov edi, eax
test edi, edi
jne 0x4982f9
xor al, al
jmp 0x49860a
cmp dword [edi + 0x90], 0
je 0x4983ed
lea ecx, [ebp - 0x9c]
call dword [0x4ea6d4]
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x48]
push 0x100000
push eax
call fcn.00452156
add esp, 0xc
push eax
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 1
call dword [0x4ea720]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call dword [0x4ea4dc]
cmp dword [ebp - 0x88], 0
je 0x4983dd
lea ecx, [ebp - 0x48]
call dword [0x4ea6d4]
push str.pid
lea eax, [edi + 0x7c]
push eax
lea eax, [ebp - 0x110]
push eax
mov byte [ebp - 4], 2
call fcn.00417700
lea ecx, [ebp - 0x9c]
push ecx
push eax
lea eax, [ebp - 0xf4]
push eax
mov byte [ebp - 4], 3
call fcn.004176a7
add esp, 0x18
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call dword [0x4ea720]
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 3
call dword [0x4ea4dc]
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 2
call dword [0x4ea4dc]
lea ecx, [ebp - 0x48]
call dword [0x4ea4e0]
push eax
mov ecx, ebx
call fcn.0049b98e
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call dword [0x4ea4dc]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call dword [0x4ea4dc]
push edi
lea ecx, [ebp - 0xd4]
call dword [0x4ea4d8]
push 5
pop ebx
push 0x4fc750
lea ecx, [ebp - 0xd4]
mov dword [ebp - 4], ebx
call dword [0x4ea6f8]
lea ecx, [ebp - 0x2c]
call dword [0x4ea6d4]
lea eax, [ebp - 0x2c]
push eax
push ebx
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 6
call dword [0x4ea4e0]
push eax
call fcn.004a703f
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xd8]
push eax
lea ecx, [esi + 0xc8]
call fcn.004150f2
mov eax, dword [esi + 0xcc]
cmp dword [ebp - 0xd8], eax
je 0x49847b
mov ecx, edi
call fcn.0049d901
lea ecx, [ebp - 0x2c]
call dword [0x4ea4e0]
push eax
mov ecx, esi
call fcn.00497706
mov bl, al
jmp 0x4985eb
lea ecx, [ebp - 0x64]
call dword [0x4ea6b0]
lea eax, [ebp - 0x64]
push eax
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call dword [0x4ea4e0]
push eax
lea ecx, [esi + 0x4c]
call fcn.004a0608
lea ecx, [ebp - 0x64]
call dword [0x4ea6a4]
mov ebx, dword [0x4eaadc]
push eax
call ebx
test eax, eax
je 0x498501
push 5
lea ecx, [ebp - 0x64]
call dword [0x4ea6a4]
push eax
lea ecx, [ebp - 0x2c]
call dword [0x4ea4e0]
push eax
mov ecx, esi
call fcn.00495a11
test al, al
mov ecx, edi
jne 0x4984e4
call fcn.0049d901
xor bl, bl
jmp 0x4985de
call fcn.0049d901
lea ecx, [ebp - 0x2c]
call dword [0x4ea4e0]
push eax
mov ecx, esi
call fcn.00497706
mov bl, al
jmp 0x4985de
lea ecx, [ebp - 0x80]
call dword [0x4ea6b0]
lea eax, [ebp - 0x80]
push eax
push 5
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 8
call fcn.004a07a1
lea ecx, [ebp - 0x80]
call dword [0x4ea6a4]
push eax
call ebx
test eax, eax
jne 0x49853d
lea ecx, [ebp - 0x80]
call dword [0x4ea6a4]
push eax
call dword [0x4ea860]
pop ecx
lea ecx, [ebp - 0xb8]
call dword [0x4ea6b0]
mov eax, dword [edi + 0xb4]
lea ecx, [ebp - 0xb8]
push ecx
push eax
lea ecx, [edi + 0xa0]
mov byte [ebp - 4], 9
call dword [0x4ea4e0]
push eax
call fcn.0044f5c2
add esp, 0xc
lea ecx, [ebp - 0x2c]
call dword [0x4ea4e0]
push eax
push 1
mov ecx, esi
call fcn.004957fa
lea eax, [esi + 8]
push eax
push 1
push dword [ebp + 8]
lea ecx, [ebp - 0x64]
call dword [0x4ea6a4]
push eax
lea ecx, [ebp - 0xb8]
call dword [0x4ea6a4]
push eax
lea ecx, [ebp - 0x2c]
call dword [0x4ea4e0]
push eax
lea ecx, [esi + 0xa0]
call fcn.004a8c68
mov ecx, edi
mov bl, al
call fcn.0049d901
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 8
call dword [0x4ea4f8]
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 7
call dword [0x4ea4f8]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 6
call dword [0x4ea4f8]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call dword [0x4ea4dc]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd4]
call dword [0x4ea4dc]
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.004d0557
leave
ret 4