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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f2ff3
push eax
mov eax, dword [esp + 0x24]
mov dword fs:[0], esp
sub esp, 0x2c
push ebp
xor ebp, ebp
cmp eax, ebp
jne 0x4a11f7
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4a11f7
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 0x18
push ebx
push esi
push edi
mov edi, dword [esp + 0x5c]
cmp edi, ebp
je 0x4a133f
cmp dword [edi], 0xffffffff
jne 0x4a1325
mov dword [edi], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x60], ebp
mov edx, dword [0x53d480]
mov ecx, 0x53d480
mov byte [esp + 0x44], 1
mov dword [esp + 0x10], ecx
call dword [edx + 4]
mov eax, dword [0x537160]
mov bl, 2
cmp eax, ebp
mov byte [esp + 0x44], bl
jne 0x4a1295
cmp dword [0x53715c], ebp
jne 0x4a1295
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0x44], 3
je 0x4a126b
mov ecx, eax
call fcn.00431f10
jmp 0x4a126d
xor eax, eax
mov dword [0x53715c], eax
mov eax, dword [0x528890]
push eax
push 0x4031c0
mov ecx, 0x53bea0
mov byte [esp + 0x4c], bl
call fcn.00402190
mov dword [0x537160], 1
mov edx, dword [0x53d480]
mov esi, dword [0x53715c]
mov ecx, 0x53d480
mov byte [esp + 0x44], 1
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x5c]
push ecx
push esi
call dword [eax + 8]
mov ecx, dword [esp + 0x5c]
test eax, eax
jl 0x4a12fc
cmp ecx, ebp
je 0x4a12fc
mov esi, dword [esp + 0x60]
lea eax, [esp + 0x60]
mov dword [esp + 0x60], ebp
mov edx, dword [ecx]
push eax
push 0x52b5d0
push ecx
call dword [edx]
cmp esi, ebp
je 0x4a12e6
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
mov eax, dword [esp + 0x60]
cmp eax, ebp
je 0x4a1339
mov edx, dword [eax]
push edi
push eax
call dword [edx + 0x90]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
cmp eax, ebp
mov byte [esp + 0x44], 0
je 0x4a1313
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x5c]
cmp ecx, ebp
mov dword [esp + 0x44], 0xffffffff
je 0x4a1325
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, dword [edi]
mov ebx, dword [esp + 0x4c]
cmp eax, 1
jne 0x4a1343
mov ecx, ebx
call fcn.00449030
jmp 0x4a1343
mov ecx, dword [esp + 0x5c]
jmp 0x4a1300
mov ebx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x58]
xor eax, eax
cmp ecx, ebp
je 0x4a1359
cmp dword [ecx], 1
jne 0x4a1359
mov eax, 1
mov dword [ecx], ebp
mov esi, dword [esp + 0x50]
push eax
push esi
mov ecx, ebx
call fcn.00448a60
cmp eax, ebp
mov dword [esp + 0x4c], eax
je 0x4a145c
mov cl, byte [esp + 0x54]
test cl, cl
je 0x4a145c
mov al, byte [esp + 0x54]
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x18], al
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
lea ecx, [esp + 0x28]
mov dword [esp + 0x44], 4
call fcn.004c5ee0
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 5
push ecx
push esi
lea ecx, [esp + 0x30]
call fcn.004c5f50
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
jne 0x4a13c3
xor eax, eax
jmp 0x4a13cc
mov eax, dword [esp + 0x20]
sub eax, ecx
sar eax, 4
cmp eax, ebp
jle 0x4a13f6
xor esi, esi
mov edi, eax
jmp 0x4a13da
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + ecx + 4]
cmp eax, ebp
jne 0x4a13e7
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push ebp
push eax
mov ecx, ebx
call fcn.00448a60
add esi, 0x10
dec edi
jne 0x4a13d6
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 4
call fcn.004c5f20
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
mov edi, eax
je 0x4a144f
lea esi, [ecx + 4]
mov ecx, dword [esi]
cmp ecx, ebp
je 0x4a1439
mov al, byte [ecx - 1]
test al, al
je 0x4a142d
cmp al, 0xff
je 0x4a142d
dec al
mov byte [ecx - 1], al
jmp 0x4a1439
add ecx, 0xfffffffe
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi], ebp
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
add esi, 0x10
lea edx, [esi - 4]
cmp edx, edi
jne 0x4a1415
mov ecx, dword [esp + 0x1c]
push ecx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x50]
add esp, 4
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
pop ebp
mov dword fs:[0], ecx
add esp, 0x38
ret 0x18