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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5afa92
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x627490]
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 0x42c933
xor ecx, ecx
jmp 0x42c947
mov ecx, edi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42c938
sub ecx, ebx
mov ebx, dword [ebp - 0x150]
push ecx
push edi
mov ecx, edx
call fcn.00404c00
lea ecx, [ebp - 0x2c]
call fcn.0042d000
add esp, 0x18
push 1
push ecx
push 0x5fd630
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00422c70
test eax, eax
js 0x42ca7b
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 0x42c996
test al, 0x10
jne 0x42ca7b
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
call fcn.0042be70
test eax, eax
je 0x42ca7b
lea eax, [ebp - 0x2c]
mov edx, 0x5fdbf0
push eax
lea ecx, [ebp - 0x14c]
call fcn.004081a0
add esp, 4
push 0x5fdbe8
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 0x42ca13
cmp dword [ebp - 0x5c], 0x10
jb 0x42c9f8
push dword [ebp - 0x70]
call fcn.00448bc8
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 0x42ca2a
push dword [ebp - 0x134]
call fcn.00448bc8
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 0x42ca60
push dword [ebp - 0x14c]
call fcn.00448bc8
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 0x42ceb5
push 0xa8
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.00574db0
add esp, 8
lea ecx, [ebp - 0x11c]
call fcn.0042e4c0
push 0x40
push 0x22
push edi
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 3
call fcn.0042e770
test eax, eax
lea ecx, [ebp - 0x11c]
mov eax, dword [ebp - 0x11c]
mov eax, dword [eax + 4]
jne 0x42cad6
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x42cae5
or eax, 4
jmp 0x42cae5
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 0x42cd4a
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 0x42cb2c
xor ecx, ecx
jmp 0x42cb3a
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42cb31
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, 0x5fdc04
lea ecx, [ebp - 0x14c]
call fcn.00405a70
add esp, 4
push 0x5fdbfc
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 0x42cbb3
cmp dword [ebp - 0x5c], 0x10
jb 0x42cb98
push dword [ebp - 0x70]
call fcn.00448bc8
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 0x42cbca
push dword [ebp - 0x168]
call fcn.00448bc8
add esp, 4
cmp dword [ebp - 0x138], 0x10
mov dword [ebp - 0x154], 0xf
mov dword [ebp - 0x158], 0
mov byte [ebp - 0x168], 0
jb 0x42cbfc
push dword [ebp - 0x14c]
call fcn.00448bc8
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 0x42cc32
push dword [ebp - 0x134]
call fcn.00448bc8
add esp, 4
lea ecx, [ebp - 0x118]
call fcn.0042e830
test eax, eax
jne 0x42cc69
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 0x42cc61
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.0042dc50
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.00592ded
add esp, 4
cmp dword [ebp - 0x18], 0x10
jb 0x42ccfb
push dword [ebp - 0x2c]
call fcn.00448bc8
add esp, 4
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jb 0x42cd1e
push dword [ebp - 0x58]
call fcn.00448bc8
add esp, 4
cmp dword [ebp - 0x5c], 0x10
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
jb 0x42cee0
push dword [ebp - 0x70]
call fcn.00448bc8
add esp, 4
jmp 0x42cee0
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x11c]
cdq
push edx
push eax
push ebx
call fcn.0042d920
mov eax, dword [ebp - 0x11c]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x110], 6
je 0x42ce68
push edi
lea ecx, [ebp - 0x134]
mov byte [ebp - 0x74], 0
call fcn.00404490
push eax
mov edx, 0x5fdc10
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x168]
call fcn.00405a70
add esp, 4
push 0x5fdbfc
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 0x42cde9
cmp dword [ebp - 0x5c], 0x10
jb 0x42cdce
push dword [ebp - 0x70]
call fcn.00448bc8
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 0x42ce00
push dword [ebp - 0x14c]
call fcn.00448bc8
add esp, 4
cmp dword [ebp - 0x154], 0x10
mov dword [ebp - 0x138], 0xf
mov dword [ebp - 0x13c], 0
mov byte [ebp - 0x14c], 0
jb 0x42ce32
push dword [ebp - 0x168]
call fcn.00448bc8
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 0x42ce68
push dword [ebp - 0x134]
call fcn.00448bc8
add esp, 4
lea ecx, [ebp - 0x118]
call fcn.0042e830
test eax, eax
jne 0x42ce9f
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 0x42ce97
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.0042cf00
cmp dword [ebp - 0x18], 0x10
jb 0x42cec6
push dword [ebp - 0x2c]
call fcn.00448bc8
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.00570aac
mov esp, ebp
pop ebp
ret