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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b3d02
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x62c330]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push esi
push edi
mov eax, dword [0x62c330]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0x124]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x60], 0
call fcn.0040c0b0
sub esp, 0x18
mov dword [esp + 0x198], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp byte [edi], 0
jne 0x42d389
xor ecx, ecx
jmp 0x42d39d
mov ecx, edi
lea ebx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42d390
sub ecx, ebx
mov ebx, dword [esp + 0x58]
push ecx
push edi
mov ecx, edx
call fcn.00404be0
lea ecx, [esp + 0x124]
call fcn.0042dbc0
add esp, 0x18
push 1
push ecx
push 0x600c2c
lea ecx, [esp + 0x118]
mov byte [esp + 0x18c], 1
call fcn.00423570
test eax, eax
js 0x42d517
cmp dword [esp + 0x120], 0x10
lea eax, [esp + 0x10c]
cmovae eax, dword [esp + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42d404
test al, 0x10
jne 0x42d517
cmp dword [esp + 0x120], 0x10
lea ecx, [esp + 0x10c]
cmovae ecx, dword [esp + 0x10c]
call fcn.0042c760
test eax, eax
je 0x42d517
lea eax, [esp + 0x10c]
mov edx, 0x6012a8
push eax
lea ecx, [esp + 0x2c]
call fcn.00408180
add esp, 4
push 0x6012a0
mov edx, eax
mov byte [esp + 0x184], 2
lea ecx, [esp + 0x14]
call fcn.00405ae0
mov edi, eax
add esp, 4
lea eax, [esp + 0x128]
cmp eax, edi
je 0x42d4ad
cmp dword [esp + 0x13c], 0x10
jb 0x42d482
push dword [esp + 0x128]
call fcn.0044ec68
add esp, 4
push edi
lea ecx, [esp + 0x12c]
mov dword [esp + 0x140], 0xf
mov dword [esp + 0x13c], 0
mov byte [esp + 0x12c], 0
call fcn.004045a0
cmp dword [esp + 0x24], 0x10
jb 0x42d4c0
push dword [esp + 0x10]
call fcn.0044ec68
add esp, 4
mov byte [esp + 0x180], 1
cmp dword [esp + 0x3c], 0x10
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
jb 0x42d4f0
push dword [esp + 0x28]
call fcn.0044ec68
add esp, 4
lea eax, [esp + 0x124]
mov byte [esp + 0x124], 0
push eax
mov ecx, esi
mov dword [esp + 0x160], 3
call fcn.004102a0
jmp 0x42d96d
push 0xa8
lea eax, [esp + 0x68]
push 0
push eax
call fcn.00578a00
add esp, 8
lea ecx, [esp + 0x68]
call fcn.0042fbd0
push 0x40
push 0x22
push edi
lea ecx, [esp + 0x74]
mov byte [esp + 0x18c], 3
call fcn.0042ff10
test eax, eax
lea ecx, [esp + 0x64]
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 4]
jne 0x42d56c
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x42d57b
or eax, 4
jmp 0x42d57b
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 [esp + 0x64]
mov eax, dword [eax + 4]
test byte [esp + eax + 0x70], 6
je 0x42d7ff
cmp byte [edi], 0
mov byte [esp + 0x124], 0
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
jne 0x42d5bb
xor ecx, ecx
jmp 0x42d5c9
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42d5c0
sub ecx, edx
push ecx
push edi
lea ecx, [esp + 0x18]
call fcn.00404be0
lea eax, [esp + 0x10]
mov byte [esp + 0x180], 4
push eax
mov edx, 0x6012bc
lea ecx, [esp + 0x2c]
call fcn.00405a50
add esp, 4
push 0x6012b4
mov edx, eax
mov byte [esp + 0x184], 5
lea ecx, [esp + 0x48]
call fcn.00405ae0
mov edi, eax
add esp, 4
lea eax, [esp + 0x128]
cmp eax, edi
je 0x42d65e
cmp dword [esp + 0x13c], 0x10
jb 0x42d633
push dword [esp + 0x128]
call fcn.0044ec68
add esp, 4
push edi
lea ecx, [esp + 0x12c]
mov dword [esp + 0x140], 0xf
mov dword [esp + 0x13c], 0
mov byte [esp + 0x12c], 0
call fcn.004045a0
cmp dword [esp + 0x58], 0x10
jb 0x42d671
push dword [esp + 0x44]
call fcn.0044ec68
add esp, 4
cmp dword [esp + 0x3c], 0x10
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
jb 0x42d699
push dword [esp + 0x28]
call fcn.0044ec68
add esp, 4
mov byte [esp + 0x180], 3
cmp dword [esp + 0x24], 0x10
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
jb 0x42d6c9
push dword [esp + 0x10]
call fcn.0044ec68
add esp, 4
lea ecx, [esp + 0x68]
call fcn.0042ffd0
test eax, eax
jne 0x42d6fa
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x64]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x42d6f2
or eax, 4
push 0
push eax
call fcn.004042d0
lea eax, [esp + 0x124]
mov ecx, esi
push eax
call fcn.004102a0
mov byte [esp + 0x180], 1
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x64], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [esp + ecx + 0x60], eax
lea ecx, [esp + 0x68]
call fcn.0042f360
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x64], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [esp + ecx + 0x60], eax
lea eax, [esp + 0xc4]
push eax
mov dword [esp + 0xc8], vtable.std::ios_base.0
call fcn.00596cee
add esp, 4
cmp dword [esp + 0x120], 0x10
jb 0x42d788
push dword [esp + 0x10c]
call fcn.0044ec68
add esp, 4
cmp dword [esp + 0x154], 0x10
mov dword [esp + 0x120], 0xf
mov dword [esp + 0x11c], 0
mov byte [esp + 0x10c], 0
jb 0x42d7bf
push dword [esp + 0x140]
call fcn.0044ec68
add esp, 4
cmp dword [esp + 0x13c], 0x10
mov dword [esp + 0x154], 0xf
mov dword [esp + 0x150], 0
mov byte [esp + 0x140], 0
jb 0x42d9b0
push dword [esp + 0x128]
call fcn.0044ec68
add esp, 4
jmp 0x42d9b0
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x64]
cdq
push edx
push eax
push ebx
call fcn.0042ee70
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 4]
test byte [esp + eax + 0x70], 6
je 0x42d924
push edi
lea ecx, [esp + 0x14]
mov byte [esp + 0x128], 0
call fcn.00404470
push eax
mov edx, 0x6012c8
mov byte [esp + 0x184], 6
lea ecx, [esp + 0x48]
call fcn.00405a50
add esp, 4
push 0x6012b4
mov edx, eax
mov byte [esp + 0x184], 7
lea ecx, [esp + 0x2c]
call fcn.00405ae0
mov edi, eax
add esp, 4
lea eax, [esp + 0x128]
cmp eax, edi
je 0x42d8b9
cmp dword [esp + 0x13c], 0x10
jb 0x42d88e
push dword [esp + 0x128]
call fcn.0044ec68
add esp, 4
push edi
lea ecx, [esp + 0x12c]
mov dword [esp + 0x140], 0xf
mov dword [esp + 0x13c], 0
mov byte [esp + 0x12c], 0
call fcn.004045a0
cmp dword [esp + 0x3c], 0x10
jb 0x42d8cc
push dword [esp + 0x28]
call fcn.0044ec68
add esp, 4
cmp dword [esp + 0x58], 0x10
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
jb 0x42d8f4
push dword [esp + 0x44]
call fcn.0044ec68
add esp, 4
mov byte [esp + 0x180], 3
cmp dword [esp + 0x24], 0x10
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
jb 0x42d924
push dword [esp + 0x10]
call fcn.0044ec68
add esp, 4
lea ecx, [esp + 0x68]
call fcn.0042ffd0
test eax, eax
jne 0x42d955
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x64]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x42d94d
or eax, 4
push 0
push eax
call fcn.004042d0
lea eax, [esp + 0x124]
mov ecx, esi
push eax
call fcn.004102a0
lea ecx, [esp + 0x64]
call fcn.0042d9e0
cmp dword [esp + 0x120], 0x10
jb 0x42d986
push dword [esp + 0x10c]
call fcn.0044ec68
add esp, 4
lea ecx, [esp + 0x124]
mov dword [esp + 0x120], 0xf
mov dword [esp + 0x11c], 0
mov byte [esp + 0x10c], 0
call fcn.00406710
mov eax, esi
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.005745f2
mov esp, ebp
pop ebp
ret