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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61e256
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x6d5db8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x48]
cmp dword [eax + 0x98], 0
jne 0x46ae89
jmp 0x46b1fc
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x48]
add ecx, 0x78
call fcn.0051c6c0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x46aead
jmp 0x46b1fc
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x48]
cmp dword [eax + edx*4 + 0x20a0], 0
je 0x46af5b
lea ecx, [ebp - 0x2c]
call fcn.00503da0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0x2000
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0x2000
push 0
push 1
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x2c]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x48]
add ecx, 0xd0
call fcn.005a4ad0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x48]
mov dword [edx + ecx*4 + 0x20a0], 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x48]
add ecx, 0x78
call fcn.0051c890
mov ecx, dword [ebp - 0x48]
mov dword [ecx + 0x2588], 0
mov edx, dword [ebp - 0x48]
mov dword [edx + 0x2590], 0
mov eax, dword [ebp - 0x48]
mov dword [eax + 0x258c], 0
mov ecx, dword [ebp - 0x48]
mov dword [ecx + 0x2594], 0
mov edx, dword [ebp - 0x48]
add edx, dword [ebp + 8]
movzx eax, byte [edx + 0x263c]
test eax, eax
je 0x46afb6
push 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x48]
call fcn.0046ca00
mov edx, dword [ebp - 0x48]
add edx, dword [ebp + 8]
mov byte [edx + 0x263c], 0
mov eax, dword [ebp - 0x48]
add eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x263c]
test ecx, ecx
jne 0x46afb6
mov edx, dword [ebp - 0x48]
add edx, dword [ebp + 8]
movzx eax, byte [edx + 0x25ac]
test eax, eax
jne 0x46afb6
push 0
mov ecx, dword [0x6d8008]
call fcn.00421c70
mov ecx, dword [ebp - 0x48]
add ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x275c]
test edx, edx
je 0x46b085
lea ecx, [ebp - 0x3c]
call fcn.00503da0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x34], 0x2000
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0x2000
mov ecx, dword [ebp - 0x48]
call fcn.004765d0
push 0
push 1
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x3c]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x48]
add ecx, 0xd0
call fcn.005a4ad0
mov eax, dword [ebp - 0x48]
add eax, dword [ebp + 8]
mov byte [eax + 0x275c], 0
push 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x48]
add ecx, 0x78
call fcn.0051c890
mov edx, dword [ebp + 8]
shl edx, 4
mov eax, dword [ebp - 0x48]
mov dword [eax + edx + 0x27ec], 0
mov ecx, dword [ebp + 8]
shl ecx, 4
mov edx, dword [ebp - 0x48]
mov dword [edx + ecx + 0x27f4], 0x2000
mov eax, dword [ebp + 8]
shl eax, 4
mov ecx, dword [ebp - 0x48]
mov dword [ecx + eax + 0x27f0], 0
mov edx, dword [ebp + 8]
shl edx, 4
mov eax, dword [ebp - 0x48]
mov dword [eax + edx + 0x27f8], 0x2000
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0xc
mov edx, dword [ebp - 0x48]
movzx eax, byte [edx + ecx + 0x19dc]
test eax, eax
je 0x46b13f
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x48]
call fcn.0046d0a0
test eax, eax
je 0x46b122
mov edx, dword [ebp + 8]
imul edx, edx, 0xc
mov eax, dword [ebp - 0x48]
mov dword [eax + edx + 0x19e4], 2
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x48]
add ecx, 0x19c4
call fcn.00476c20
push eax
lea ecx, [ebp - 0x40]
call fcn.00401580
mov dword [ebp - 4], 0
push 0x650488
push 0x650490
lea ecx, [ebp - 0x40]
call fcn.0043be20
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp + 8]
push eax
mov ecx, dword [ebp - 0x48]
add ecx, 0x19c4
call fcn.00476c20
mov ecx, eax
call fcn.0040bb70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401620
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x48]
call fcn.00473890
mov edx, dword [ebp + 8]
imul edx, edx, 0xc
mov eax, dword [ebp - 0x48]
mov byte [eax + edx + 0x19dc], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x48]
call fcn.00469940
push 0x650498
push 0x6504a4
call fcn.0041b910
add eax, 4
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00404260
add esp, 0xc
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x50]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.00404260
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.00401620
lea ecx, [ebp - 0x18]
call fcn.00587e90
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x46b1ce
lea ecx, [ebp - 0x18]
call fcn.00587e90
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x48]
add ecx, 0x78
call fcn.0051ca00
push 1
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x48]
add ecx, 0x78
call fcn.0051c700
push 0
push 0xa
push 4
mov ecx, dword [ebp - 0x48]
call fcn.004168b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401620
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4