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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5af512
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.0040a120
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 0x42c7d3
xor ecx, ecx
jmp 0x42c7e7
mov ecx, edi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42c7d8
sub ecx, ebx
mov ebx, dword [ebp - 0x150]
push ecx
push edi
mov ecx, edx
call fcn.00404be0
lea ecx, [ebp - 0x2c]
call fcn.0042cea0
add esp, 0x18
push 1
push ecx
push 0x5fca1c
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00422b20
test eax, eax
js 0x42c91b
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 0x42c836
test al, 0x10
jne 0x42c91b
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
call fcn.0042bd10
test eax, eax
je 0x42c91b
lea eax, [ebp - 0x2c]
mov edx, 0x5fca28
push eax
lea ecx, [ebp - 0x14c]
call fcn.00408180
add esp, 4
push 0x5fca20
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x134]
call fcn.00405ae0
mov edi, eax
add esp, 4
lea eax, [ebp - 0x70]
cmp eax, edi
je 0x42c8b3
cmp dword [ebp - 0x5c], 0x10
jb 0x42c898
push dword [ebp - 0x70]
call fcn.00448661
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.004045a0
cmp dword [ebp - 0x120], 0x10
jb 0x42c8ca
push dword [ebp - 0x134]
call fcn.00448661
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 0x42c900
push dword [ebp - 0x14c]
call fcn.00448661
add esp, 4
lea eax, [ebp - 0x74]
mov byte [ebp - 0x74], 0
push eax
mov ecx, esi
mov dword [ebp - 0x3c], 3
call fcn.004130f0
jmp 0x42cd55
push 0xa8
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.00574850
add esp, 8
lea ecx, [ebp - 0x11c]
call fcn.0042e360
push 0x40
push 0x22
push edi
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 3
call fcn.0042e610
test eax, eax
lea ecx, [ebp - 0x11c]
mov eax, dword [ebp - 0x11c]
mov eax, dword [eax + 4]
jne 0x42c976
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x42c985
or eax, 4
jmp 0x42c985
add ecx, eax
mov edx, 4
xor eax, eax
cmp dword [ecx + 0x38], eax
cmove eax, edx
push 0
push eax
call fcn.004042d0
mov eax, dword [ebp - 0x11c]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x110], 6
je 0x42cbea
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 0x42c9cc
xor ecx, ecx
jmp 0x42c9da
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42c9d1
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x134]
call fcn.00404be0
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 4
push eax
mov edx, 0x5fca3c
lea ecx, [ebp - 0x14c]
call fcn.00405a50
add esp, 4
push 0x5fca34
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x168]
call fcn.00405ae0
mov edi, eax
add esp, 4
lea eax, [ebp - 0x70]
cmp eax, edi
je 0x42ca53
cmp dword [ebp - 0x5c], 0x10
jb 0x42ca38
push dword [ebp - 0x70]
call fcn.00448661
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.004045a0
cmp dword [ebp - 0x154], 0x10
jb 0x42ca6a
push dword [ebp - 0x168]
call fcn.00448661
add esp, 4
cmp dword [ebp - 0x138], 0x10
mov dword [ebp - 0x154], 0xf
mov dword [ebp - 0x158], 0
mov byte [ebp - 0x168], 0
jb 0x42ca9c
push dword [ebp - 0x14c]
call fcn.00448661
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 0x42cad2
push dword [ebp - 0x134]
call fcn.00448661
add esp, 4
lea ecx, [ebp - 0x118]
call fcn.0042e6d0
test eax, eax
jne 0x42cb09
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 0x42cb01
or eax, 4
push 0
push eax
call fcn.004042d0
lea eax, [ebp - 0x74]
mov ecx, esi
push eax
call fcn.004130f0
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.0042daf0
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.0059285e
add esp, 4
cmp dword [ebp - 0x18], 0x10
jb 0x42cb9b
push dword [ebp - 0x2c]
call fcn.00448661
add esp, 4
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jb 0x42cbbe
push dword [ebp - 0x58]
call fcn.00448661
add esp, 4
cmp dword [ebp - 0x5c], 0x10
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
jb 0x42cd80
push dword [ebp - 0x70]
call fcn.00448661
add esp, 4
jmp 0x42cd80
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x11c]
cdq
push edx
push eax
push ebx
call fcn.0042d7c0
mov eax, dword [ebp - 0x11c]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x110], 6
je 0x42cd08
push edi
lea ecx, [ebp - 0x134]
mov byte [ebp - 0x74], 0
call fcn.00404470
push eax
mov edx, 0x5fca50
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x168]
call fcn.00405a50
add esp, 4
push 0x5fca48
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x14c]
call fcn.00405ae0
mov edi, eax
add esp, 4
lea eax, [ebp - 0x70]
cmp eax, edi
je 0x42cc89
cmp dword [ebp - 0x5c], 0x10
jb 0x42cc6e
push dword [ebp - 0x70]
call fcn.00448661
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.004045a0
cmp dword [ebp - 0x138], 0x10
jb 0x42cca0
push dword [ebp - 0x14c]
call fcn.00448661
add esp, 4
cmp dword [ebp - 0x154], 0x10
mov dword [ebp - 0x138], 0xf
mov dword [ebp - 0x13c], 0
mov byte [ebp - 0x14c], 0
jb 0x42ccd2
push dword [ebp - 0x168]
call fcn.00448661
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 0x42cd08
push dword [ebp - 0x134]
call fcn.00448661
add esp, 4
lea ecx, [ebp - 0x118]
call fcn.0042e6d0
test eax, eax
jne 0x42cd3f
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 0x42cd37
or eax, 4
push 0
push eax
call fcn.004042d0
lea eax, [ebp - 0x74]
mov ecx, esi
push eax
call fcn.004130f0
lea ecx, [ebp - 0x11c]
call fcn.0042cda0
cmp dword [ebp - 0x18], 0x10
jb 0x42cd66
push dword [ebp - 0x2c]
call fcn.00448661
add esp, 4
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.00406710
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.00570546
mov esp, ebp
pop ebp
ret