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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5afb52
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x628490]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x170], 0
call fcn.0040a140
sub esp, 0x18
mov dword [ebp - 4], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp byte [edi], 0
jne 0x42c9f3
xor ecx, ecx
jmp 0x42ca07
mov ecx, edi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42c9f8
sub ecx, ebx
mov ebx, dword [ebp - 0x150]
push ecx
push edi
mov ecx, edx
call fcn.00404c00
lea ecx, [ebp - 0x2c]
call fcn.0042d0c0
add esp, 0x18
push 1
push ecx
push 0x5fd9ec
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00422d30
test eax, eax
js 0x42cb3b
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42ca56
test al, 0x10
jne 0x42cb3b
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
call fcn.0042bf30
test eax, eax
je 0x42cb3b
lea eax, [ebp - 0x2c]
mov edx, 0x5fd9f8
push eax
lea ecx, [ebp - 0x14c]
call fcn.004081a0
add esp, 4
push 0x5fd9f0
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x134]
call fcn.00405b00
mov edi, eax
add esp, 4
lea eax, [ebp - 0x70]
cmp eax, edi
je 0x42cad3
cmp dword [ebp - 0x5c], 0x10
jb 0x42cab8
push dword [ebp - 0x70]
call fcn.00448ca8
add esp, 4
push edi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
call fcn.004045c0
cmp dword [ebp - 0x120], 0x10
jb 0x42caea
push dword [ebp - 0x134]
call fcn.00448ca8
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x138], 0x10
mov dword [ebp - 0x120], 0xf
mov dword [ebp - 0x124], 0
mov byte [ebp - 0x134], 0
jb 0x42cb20
push dword [ebp - 0x14c]
call fcn.00448ca8
add esp, 4
lea eax, [ebp - 0x74]
mov byte [ebp - 0x74], 0
push eax
mov ecx, esi
mov dword [ebp - 0x3c], 3
call fcn.00413100
jmp 0x42cf75
push 0xa8
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.00574ea0
add esp, 8
lea ecx, [ebp - 0x11c]
call fcn.0042e580
push 0x40
push 0x22
push edi
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 3
call fcn.0042e830
test eax, eax
lea ecx, [ebp - 0x11c]
mov eax, dword [ebp - 0x11c]
mov eax, dword [eax + 4]
jne 0x42cb96
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x42cba5
or eax, 4
jmp 0x42cba5
add ecx, eax
mov edx, 4
xor eax, eax
cmp dword [ecx + 0x38], eax
cmove eax, edx
push 0
push eax
call fcn.004042f0
mov eax, dword [ebp - 0x11c]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x110], 6
je 0x42ce0a
cmp byte [edi], 0
mov byte [ebp - 0x74], 0
mov dword [ebp - 0x120], 0xf
mov dword [ebp - 0x124], 0
mov byte [ebp - 0x134], 0
jne 0x42cbec
xor ecx, ecx
jmp 0x42cbfa
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42cbf1
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x134]
call fcn.00404c00
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 4
push eax
mov edx, 0x5fda0c
lea ecx, [ebp - 0x14c]
call fcn.00405a70
add esp, 4
push 0x5fda04
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x168]
call fcn.00405b00
mov edi, eax
add esp, 4
lea eax, [ebp - 0x70]
cmp eax, edi
je 0x42cc73
cmp dword [ebp - 0x5c], 0x10
jb 0x42cc58
push dword [ebp - 0x70]
call fcn.00448ca8
add esp, 4
push edi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
call fcn.004045c0
cmp dword [ebp - 0x154], 0x10
jb 0x42cc8a
push dword [ebp - 0x168]
call fcn.00448ca8
add esp, 4
cmp dword [ebp - 0x138], 0x10
mov dword [ebp - 0x154], 0xf
mov dword [ebp - 0x158], 0
mov byte [ebp - 0x168], 0
jb 0x42ccbc
push dword [ebp - 0x14c]
call fcn.00448ca8
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x120], 0x10
mov dword [ebp - 0x138], 0xf
mov dword [ebp - 0x13c], 0
mov byte [ebp - 0x14c], 0
jb 0x42ccf2
push dword [ebp - 0x134]
call fcn.00448ca8
add esp, 4
lea ecx, [ebp - 0x118]
call fcn.0042e8f0
test eax, eax
jne 0x42cd29
mov eax, dword [ebp - 0x11c]
lea ecx, [ebp - 0x11c]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x42cd21
or eax, 4
push 0
push eax
call fcn.004042f0
lea eax, [ebp - 0x74]
mov ecx, esi
push eax
call fcn.00413100
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x11c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x11c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ebp + ecx - 0x120], eax
lea ecx, [ebp - 0x118]
call fcn.0042dd10
mov eax, dword [ebp - 0x11c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x11c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x120], eax
lea eax, [ebp - 0xbc]
push eax
mov dword [ebp - 0xbc], vtable.std::ios_base.0
call fcn.00592ebe
add esp, 4
cmp dword [ebp - 0x18], 0x10
jb 0x42cdbb
push dword [ebp - 0x2c]
call fcn.00448ca8
add esp, 4
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jb 0x42cdde
push dword [ebp - 0x58]
call fcn.00448ca8
add esp, 4
cmp dword [ebp - 0x5c], 0x10
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
jb 0x42cfa0
push dword [ebp - 0x70]
call fcn.00448ca8
add esp, 4
jmp 0x42cfa0
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x11c]
cdq
push edx
push eax
push ebx
call fcn.0042d9e0
mov eax, dword [ebp - 0x11c]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x110], 6
je 0x42cf28
push edi
lea ecx, [ebp - 0x134]
mov byte [ebp - 0x74], 0
call fcn.00404490
push eax
mov edx, 0x5fda20
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x168]
call fcn.00405a70
add esp, 4
push 0x5fda18
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x14c]
call fcn.00405b00
mov edi, eax
add esp, 4
lea eax, [ebp - 0x70]
cmp eax, edi
je 0x42cea9
cmp dword [ebp - 0x5c], 0x10
jb 0x42ce8e
push dword [ebp - 0x70]
call fcn.00448ca8
add esp, 4
push edi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
call fcn.004045c0
cmp dword [ebp - 0x138], 0x10
jb 0x42cec0
push dword [ebp - 0x14c]
call fcn.00448ca8
add esp, 4
cmp dword [ebp - 0x154], 0x10
mov dword [ebp - 0x138], 0xf
mov dword [ebp - 0x13c], 0
mov byte [ebp - 0x14c], 0
jb 0x42cef2
push dword [ebp - 0x168]
call fcn.00448ca8
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x120], 0x10
mov dword [ebp - 0x154], 0xf
mov dword [ebp - 0x158], 0
mov byte [ebp - 0x168], 0
jb 0x42cf28
push dword [ebp - 0x134]
call fcn.00448ca8
add esp, 4
lea ecx, [ebp - 0x118]
call fcn.0042e8f0
test eax, eax
jne 0x42cf5f
mov eax, dword [ebp - 0x11c]
lea ecx, [ebp - 0x11c]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x42cf57
or eax, 4
push 0
push eax
call fcn.004042f0
lea eax, [ebp - 0x74]
mov ecx, esi
push eax
call fcn.00413100
lea ecx, [ebp - 0x11c]
call fcn.0042cfc0
cmp dword [ebp - 0x18], 0x10
jb 0x42cf86
push dword [ebp - 0x2c]
call fcn.00448ca8
add esp, 4
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.00406730
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00570b94
mov esp, ebp
pop ebp
ret