Function at 0x4a74b0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x520114
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x25c
push ebx
push ebp
push esi
push edi
call fcn.004a7380
call dword [0x523364]
mov esi, eax
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x38]
mov byte [esp + 0x38], al
call dword [0x5233d0]
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x28], cl
lea ecx, [esp + 0x28]
mov dword [esp + 0x278], 0
call dword [0x5233d0]
push 0x5647b8
call dword [0x52345c]
add esp, 4
lea ecx, [esp + 0x24]
push eax
push 0x5647b8
call dword [0x5233e8]
mov edi, dword [esp + 0x298]
mov ebp, dword [esp + 0x294]
mov ebx, dword [esp + 0x290]
mov ecx, dword [esp + 0x28c]
lea edx, [esp + 0x34]
lea eax, [esp + 0x24]
push edx
mov edx, dword [esp + 0x28c]
push eax
mov eax, dword [esp + 0x28c]
push esi
push edi
push ebp
push ebx
push ecx
push edx
push eax
mov byte [esp + 0x298], 1
call fcn.004a6c20
add esp, 0x24
lea ecx, [esp + 0x24]
mov byte [esp + 0x274], 0
push 1
call dword [0x5233d0]
mov ecx, dword [esp + 0x27c]
lea edx, [esp + 0x34]
push ecx
push edx
call fcn.004a6a90
mov al, byte [esp + 0x1b]
add esp, 8
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], al
push 0
call dword [0x5233d0]
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x28], cl
lea ecx, [esp + 0x28]
mov byte [esp + 0x278], 2
call dword [0x5233d0]
push 0x5647b0
call dword [0x52345c]
add esp, 4
lea ecx, [esp + 0x24]
push eax
push 0x5647b0
call dword [0x5233e8]
lea edx, [esp + 0x14]
mov byte [esp + 0x274], 3
push edx
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x290]
mov edx, dword [esp + 0x28c]
push eax
mov eax, dword [esp + 0x28c]
push esi
push edi
push ebp
push ebx
push ecx
push edx
push eax
call fcn.004a6c20
add esp, 0x24
lea ecx, [esp + 0x24]
mov byte [esp + 0x274], 2
push 1
call dword [0x5233d0]
mov esi, dword [esp + 0x29c]
xor ebp, ebp
cmp dword [esi + 8], ebp
je 0x4a7773
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x66]
mov word [esp + 0x64], bp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1c]
cmp ecx, 0x103
stosw word es:[edi], ax
jbe 0x4a7670
mov ecx, 0x103
mov eax, dword [esp + 0x18]
cmp eax, ebp
jne 0x4a767d
mov eax, dword [0x5233dc]
push ecx
lea ecx, [esp + 0x68]
push eax
push ecx
call dword [0x523498]
add esp, 0xc
lea edx, [esp + 0x64]
push edx
call dword [0x52369c]
lea eax, [esp + 0x64]
push eax
call dword [0x52345c]
add esp, 4
mov edi, eax
lea ecx, [esp + 0x14]
push 1
push edi
call dword [0x52342c]
test al, al
je 0x4a76d7
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x64]
push edi
push ecx
push edx
call fcn.0049cd60
add esp, 0xc
lea ecx, [esp + 0x14]
push edi
call dword [0x523434]
lea eax, [esp + 0x14]
push 0x5605bc
lea ecx, [esp + 0x48]
push eax
push ecx
call fcn.0051c58e
push esi
lea edx, [esp + 0x64]
push eax
push edx
mov byte [esp + 0x28c], 4
call fcn.0051c588
push str..dmp
push eax
lea eax, [esp + 0x44]
mov bl, 5
push eax
mov byte [esp + 0x298], bl
call fcn.0051c58e
add esp, 0x24
mov ecx, dword [0x523428]
mov byte [esp + 0x274], 6
mov edx, dword [ecx]
lea ecx, [esp + 0x14]
push edx
push ebp
push eax
call dword [0x523424]
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x278], bl
call dword [0x5233d0]
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0x278], 4
call dword [0x5233d0]
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x278], 2
call dword [0x5233d0]
mov esi, dword [esp + 0x280]
cmp dword [esi + 8], ebp
je 0x4a77ba
mov eax, dword [esi + 4]
cmp eax, ebp
jne 0x4a778b
mov eax, dword [0x5233dc]
push eax
call dword [0x523704]
test eax, eax
je 0x4a77ba
mov eax, dword [esp + 0x18]
mov edx, dword [0x5233dc]
cmp eax, ebp
mov ecx, edx
je 0x4a77a8
mov ecx, eax
mov eax, dword [esi + 4]
cmp eax, ebp
jne 0x4a77b1
mov eax, edx
push ebp
push ecx
push eax
call dword [0x52315c]
mov ecx, dword [esp + 0x18]
cmp ecx, ebp
je 0x4a77e0
mov al, byte [ecx - 1]
test al, al
je 0x4a77d4
cmp al, 0xff
je 0x4a77d4
dec al
mov byte [ecx - 1], al
jmp 0x4a77e0
add ecx, 0xfffffffe
push ecx
call fcn.0051c55a
add esp, 4
mov ecx, dword [esp + 0x38]
pop edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
pop esi
cmp ecx, ebp
pop ebp
pop ebx
je 0x4a782b
mov al, byte [ecx - 1]
test al, al
je 0x4a781f
cmp al, 0xff
je 0x4a781f
dec al
mov byte [ecx - 1], al
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
add esp, 0x268
ret 0x24
add ecx, 0xfffffffe
push ecx
call fcn.0051c55a
add esp, 4
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
add esp, 0x268
ret 0x24