Function at 0x49ee90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ff331
mov eax, dword fs:[0]
push eax
sub esp, 0x968
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x960], eax
push ebx
push esi
push edi
mov eax, dword [0x52e144]
xor eax, esp
push eax
lea eax, [esp + 0x978]
mov dword fs:[0], eax
lea ecx, [esp + 0x6c]
call fcn.00409050
lea eax, [esp + 0x13]
push eax
lea ecx, [esp + 0x17]
push ecx
xor ebx, ebx
lea ecx, [esp + 0x48]
mov dword [esp + 0x988], ebx
call fcn.0041fd40
lea edx, [esp + 0x13]
push edx
lea eax, [esp + 0x17]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x988], 1
call fcn.0041fd40
push ebx
lea ecx, [esp + 0x70]
mov byte [esp + 0x984], 2
call fcn.00409480
cmp eax, ebx
je 0x49f339
lea ebx, [ebx]
mov eax, dword [esp + 0x178]
cmp eax, ebx
je 0x49f326
push eax
push 0x521e70
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
mov ecx, dword [esp + 0x184]
push ecx
call fcn.0043d1a0
mov edi, eax
add esp, 0x10
cmp edi, ebx
jne 0x49ef9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x178]
push eax
push edx
push 0x51f0c4
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0x10
jmp 0x49f326
push 0x521e68
call fcn.00404690
push 3
push eax
lea eax, [esp + 0x80]
push eax
call fcn.004b9e25
add esp, 0x10
test eax, eax
jne 0x49f005
lea ecx, [esp + 0x74]
push ecx
push edi
lea ecx, [esp + 0x74]
call fcn.00408d20
test eax, eax
jne 0x49f005
mov eax, dword [esp + 0x178]
push ebx
lea edx, [esp + 0x78]
push edx
push eax
push edi
call fcn.0043fd60
add esp, 0x10
test eax, eax
jne 0x49f112
mov edx, dword [esp + 0x178]
lea ecx, [esp + 0x74]
push ecx
push edx
call fcn.0043e4b0
add esp, 8
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call ebx
lea eax, [esp + 0x74]
push eax
push 0x521e50
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
lea ecx, [esp + 0x178]
push ecx
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0x48]
call fcn.004203a0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x74]
push eax
call edi
cmp eax, 0xffffffff
jne 0x49f1c7
mov ecx, dword [esp + 0x178]
push ecx
push 0
push 0x2000000
call dword [0x5385d8]
push 0
mov esi, eax
mov eax, dword [esp + 0x17c]
lea edx, [esp + 0x78]
push edx
push eax
push esi
call fcn.0043fd60
add esp, 0x10
test eax, eax
jne 0x49f1c4
lea ecx, [esp + 0x74]
push ecx
call edi
cmp eax, 0xffffffff
jne 0x49f1c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
je 0x49f0cb
cmp eax, 3
jne 0x49f1c4
cmp byte [esp + 0x74], 0x5c
je 0x49f1c4
cmp byte [esp + 0x75], 0x3a
jne 0x49f1c4
mov ecx, dword [0x538370]
lea edx, [esp + 0x74]
push edx
push ecx
push eax
push 0x51c5d8
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0x14
cmp dword [0x538370], 0
jne 0x49f326
mov edx, dword [esp + 0x178]
push edx
call fcn.00491be0
jmp 0x49f323
call fcn.00491fb0
test al, al
je 0x49f005
push 0x124
lea eax, [esp + 0x644]
push ebx
push eax
mov dword [esp + 0x648], ebx
call fcn.004b6dc0
add esp, 0xc
push ebx
push 2
call dword [0x548d20]
mov esi, eax
cmp esi, 0xffffffff
je 0x49f1b6
lea ecx, [esp + 0x63c]
push ecx
push esi
mov dword [esp + 0x644], 0x128
call dword [0x548d24]
test eax, eax
je 0x49f1b6
lea ebx, [ebx]
mov eax, dword [esp + 0x178]
cmp dword [esp + 0x644], eax
je 0x49f195
lea edx, [esp + 0x63c]
push edx
push esi
call dword [0x548d28]
test eax, eax
jne 0x49f170
jmp 0x49f1a4
mov dword [esp + 0x18], eax
lea eax, [esp + 0x660]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.0043e4b0
add esp, 8
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
jmp 0x49f00b
push esi
call ebx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x76e]
push ecx
mov word [esp + 0x770], ax
call fcn.004b6dc0
mov edx, dword [esp + 0x184]
add esp, 0xc
push edx
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x49f223
mov edx, dword [esp + 0x178]
lea eax, [esp + 0x764]
push eax
lea ecx, [esp + 0x78]
push ecx
push edx
push esi
call fcn.0043fd60
add esp, 0x10
push esi
call ebx
lea eax, [esp + 0x764]
push 0
push eax
call fcn.004ba5ed
add esp, 8
cmp eax, 0xffffffff
jne 0x49f257
push 0x521e3c
call fcn.00404690
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
jmp 0x49f326
lea ecx, [esp + 0x764]
push 0
push ecx
call fcn.00495780
add esp, 8
cmp al, 1
jne 0x49f307
mov edx, dword [esp + 0x178]
push edx
call fcn.0040a880
add esp, 4
test eax, eax
je 0x49f307
mov eax, dword [esp + 0x178]
push 0
push eax
lea ecx, [esp + 0x74]
call fcn.00409690
test eax, eax
je 0x49f307
push 0x521e20
call fcn.00404690
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
jmp 0x49f2c0
lea ecx, [esp + 0x188]
push ecx
push 0x521e10
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
lea edx, [esp + 0x194]
push 1
push edx
call fcn.00495270
mov eax, dword [esp + 0x18c]
add esp, 0x14
push eax
lea ecx, [esp + 0x70]
call fcn.00409840
test eax, eax
jne 0x49f2c0
cmp byte [0x54a134], 0
je 0x49f326
cmp dword [0x5378e0], 0
je 0x49f326
lea ecx, [esp + 0x74]
push ecx
call fcn.00496700
add esp, 4
lea ecx, [esp + 0x6c]
call fcn.004095f0
xor ebx, ebx
cmp eax, ebx
jne 0x49ef30
cmp byte [0x54a134], 0
je 0x49f3ea
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.00499410
add esp, 8
cmp byte [0x54a134], 0
je 0x49f3ea
lea ecx, [esp + 0x6c]
call fcn.00408b10
test eax, eax
je 0x49f3ea
mov eax, dword [esp + 0x2bc]
cmp dword [eax], ebx
jbe 0x49f3ea
xor edi, edi
mov eax, dword [edi + eax + 4]
mov dword [esp + 0x14], eax
test eax, eax
je 0x49f3db
cmp dword [0x54a108], eax
je 0x49f3db
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x48]
mov dword [0x54a108], eax
call fcn.0041f7e0
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x58]
test eax, eax
je 0x49f3bd
cmp eax, dword [esp + 0x40]
je 0x49f3c2
call fcn.004b7c48
cmp dword [esp + 0x1c], esi
jne 0x49f3db
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x28]
call fcn.004203a0
mov eax, dword [esp + 0x2bc]
inc ebx
add edi, 0x10
cmp ebx, dword [eax]
jb 0x49f37f
mov edx, dword [esp + 0x38]
mov edi, dword [edx]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
lea esp, [esp]
mov ebx, dword [esp + 0x38]
test esi, esi
je 0x49f40e
cmp esi, dword [esp + 0x20]
je 0x49f413
call fcn.004b7c48
cmp edi, ebx
je 0x49f524
test esi, esi
jne 0x49f4da
call fcn.004b7c48
cmp edi, dword [esi + 0x18]
jne 0x49f432
call fcn.004b7c48
mov edi, dword [edi + 0xc]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x76e]
push ecx
mov word [esp + 0x770], ax
call fcn.004b6dc0
mov edx, dword [esp + 0x184]
add esp, 0xc
push edx
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x49f495
mov edx, dword [esp + 0x178]
lea eax, [esp + 0x764]
push eax
lea ecx, [esp + 0x78]
push ecx
push edx
push esi
call fcn.0043fd60
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x764]
push 0
push eax
call fcn.004ba5ed
add esp, 8
cmp eax, 0xffffffff
jne 0x49f4e1
push 0x521e3c
call fcn.00404690
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.00416500
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jmp 0x49f400
mov esi, dword [esi]
jmp 0x49f428
lea ecx, [esp + 0x764]
push 0
push ecx
call fcn.00495780
add esp, 8
cmp byte [0x54a134], 0
je 0x49f50e
cmp dword [0x5378e0], 0
je 0x49f50e
push edi
call fcn.004967b0
add esp, 4
lea ecx, [esp + 0x18]
call fcn.00416500
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jmp 0x49f400
lea ecx, [esp + 0x20]
mov byte [esp + 0x980], 1
call fcn.004212b0
lea ecx, [esp + 0x40]
mov byte [esp + 0x980], 0
call fcn.004212b0
lea ecx, [esp + 0x6c]
mov dword [esp + 0x980], 0xffffffff
call fcn.004085c0
xor al, al
mov ecx, dword [esp + 0x978]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x960]
xor ecx, esp
call fcn.004b6da3
mov esp, ebp
pop ebp
ret