Function at 0x4f9560
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x574303
mov eax, dword fs:[0]
push eax
sub esp, 0x180
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x194]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebx
mov edi, dword [esp + 0x1a4]
mov dword [esp + 0x19c], ebx
mov eax, dword [edi + 4]
xor ebp, ebp
cmp dword [eax - 0xc], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
je 0x4f9918
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4f9918
mov eax, dword [edi + 4]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea esi, [esp + 0x28]
call fcn.00442390
test eax, eax
jne 0x4f95f8
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4f9926
push eax
jmp 0x4f991d
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4f95e6
cmp dword [esp + 0x14], ebx
je 0x4f95e6
push eax
call fcn.00442480
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x30], esi
je 0x4f98f9
call fcn.0041a270
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x14], edi
je 0x4f98a5
lea ecx, [ecx]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x19c], 2
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x19c], 3
mov eax, dword [0x5e736c]
mov esi, dword [edi + 0x20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
add esi, 8
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
push str.group
push esi
mov byte [esp + 0x1a4], 4
call dword [sym.imp.MSVCR80.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4f98b5
add edi, 0x2c
mov esi, str.name
call fcn.0041e3f0
cmp eax, ebx
je 0x4f96c2
mov eax, dword [eax + 0x18]
add eax, 8
jmp 0x4f96c4
xor eax, eax
push 0xfde9
lea ecx, [esp + 0x94]
push eax
lea eax, [esp + 0x94]
mov dword [esp + 0x94], ecx
call fcn.004102d0
mov byte [esp + 0x19c], 5
mov edx, dword [esp + 0x8c]
lea edi, [esp + 0x18]
call fcn.00410020
mov byte [esp + 0x19c], 4
mov eax, dword [esp + 0x8c]
lea edx, [esp + 0x90]
cmp eax, edx
je 0x4f9720
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov esi, dword [esp + 0x14]
mov dword [esp + 0x1c], ebx
lea ebx, [esp + 0x1c]
mov ecx, 0x590e24
mov eax, esi
call fcn.0041cdb0
test eax, eax
je 0x4f9744
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov ebp, dword [esp + 0x18]
cmp dword [ebp - 0xc], 0
je 0x4f981c
lea ecx, [esp + 0x44]
push ecx
push esi
call fcn.004f99b0
test eax, eax
je 0x4f97fe
sub esp, 0x10
mov edx, esp
mov dword [esp + 0x2c], esp
push edx
lea ecx, [esp + 0x58]
call fcn.004fa360
push ecx
lea eax, [ebp - 0x10]
mov byte [esp + 0x1b0], 6
mov dword [esp + 0x68], esp
mov esi, esp
call fcn.00410660
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x80]
push eax
mov byte [esp + 0x1b4], 4
call fcn.004fb6a0
add esp, 0x18
lea ecx, [esp + 0x58]
push ecx
mov edi, eax
mov byte [esp + 0x1a0], 7
call fcn.004fb640
mov ebx, dword [esp + 0x1a4]
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x84]
push eax
add ebx, 8
mov byte [esp + 0x1a4], 8
call fcn.004fa190
lea eax, [esp + 0x58]
call fcn.004f9950
lea eax, [esp + 0x6c]
mov byte [esp + 0x19c], 4
call fcn.004f9950
lea eax, [esp + 0x18]
lea edi, [esp + 0x28]
call fcn.004101e0
mov esi, dword [esp + 0x1a4]
add esi, 0x14
mov ebx, edi
call fcn.004fa2a0
mov edi, dword [esp + 0x14]
xor ebx, ebx
mov eax, edi
call fcn.00419e50
mov edi, eax
add ebp, 0xfffffff0
mov dword [esp + 0x14], edi
mov byte [esp + 0x19c], 3
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4f9854
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov byte [esp + 0x19c], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4f987c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x34]
call fcn.004ce010
lea esi, [esp + 0x44]
mov byte [esp + 0x19c], bl
call fcn.004ce010
cmp edi, ebx
mov edi, dword [esp + 0x14]
jne 0x4f9630
mov esi, dword [esp + 0x30]
mov edx, dword [esi]
mov eax, dword [edx]
mov ebp, 1
push ebp
mov ecx, esi
call eax
jmp 0x4f98fd
push str.random
push esi
call dword [sym.imp.MSVCR80.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4f9822
lea ecx, [esp + 0x34]
push ecx
push edi
call fcn.004f99b0
test eax, eax
je 0x4f9822
mov eax, dword [esp + 0x1a4]
lea edx, [esp + 0x34]
push edx
add eax, 0x24
push eax
call fcn.004fa470
jmp 0x4f9822
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x4f990b
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
lea esi, [esp + 0x20]
call fcn.00442370
mov eax, ebp
jmp 0x4f9928
cmp esi, ebx
je 0x4f9926
push esi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x194]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18c
ret 4