Function at 0x42d2c6
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x5c4e68]
xor eax, ebp
mov dword [ebp + 0x194], eax
push ebx
push esi
mov esi, dword [ebp + 0x1a0]
push edi
push 0x1ff
lea eax, [ebp - 0x6b]
mov edi, ecx
mov ebx, edx
push 0
push eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x80], esi
mov byte [ebp - 0x6c], 0
call fcn.005117f0
add esp, 0xc
mov edx, edi
call fcn.004c3b34
test eax, eax
jne 0x42d41f
mov edx, ebx
call fcn.004c3b34
test eax, eax
jne 0x42d41f
test esi, esi
jne 0x42d337
mov dword [ebp - 0x80], 0x5304ba
push 0x200
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.005117f0
push edi
call fcn.005120b0
add esp, 0x10
cmp eax, 0x104
jb 0x42d439
mov eax, edi
call fcn.004c692f
push ebx
mov esi, eax
call fcn.004c6766
test esi, esi
mov edi, eax
pop ecx
mov dword [ebp - 0x7c], edi
je 0x42d414
test edi, edi
je 0x42d40d
push edi
push esi
call fcn.00514bc2
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
jne 0x42d3fa
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42d3fa
test bl, 2
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
je 0x42d3c2
xor ebx, 2
push ebx
push esi
call edi
push dword [ebp - 0x7c]
push esi
call fcn.00514bc2
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
jne 0x42d3fa
test bl, 4
je 0x42d3e0
xor ebx, 4
push ebx
push esi
call edi
push dword [ebp - 0x7c]
push esi
call fcn.00514bc2
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
jne 0x42d3fa
test bl, 1
je 0x42d3fa
xor ebx, 1
push ebx
push esi
call edi
push dword [ebp - 0x7c]
push esi
call fcn.00514bc2
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
push esi
call fcn.00511758
push dword [ebp - 0x7c]
call fcn.00511758
jmp 0x42d4c5
push esi
call fcn.00511758
pop ecx
test edi, edi
je 0x42d41f
push edi
call fcn.00511758
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051291c
add ebp, 0x198
leave
ret
push ebx
push edi
call fcn.00514d87
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
jne 0x42d4d1
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42d41f
test bl, 2
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
je 0x42d483
xor ebx, 2
push ebx
push dword [ebp - 0x78]
call edi
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call fcn.00514d87
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
jne 0x42d4d1
test bl, 4
je 0x42d4a5
xor ebx, 4
push ebx
push dword [ebp - 0x78]
call edi
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call fcn.00514d87
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
jne 0x42d4d1
test bl, 1
je 0x42d41f
xor ebx, 1
push ebx
push dword [ebp - 0x78]
call edi
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call fcn.00514d87
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
pop ecx
pop ecx
je 0x42d41f
xor edi, edi
push edi
push 4
push edi
push dword [ebp - 0x70]
call fcn.00514d9a
add esp, 0x10
test eax, eax
je 0x42d516
inc dword [0x5e02dc]
cmp dword [0x5e02dc], 0xa
jge 0x42d516
push str._GetLastError_
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push dword [ebp - 0x78]
push str.:2:fopen_wrapper___s_____s___EAP:_setvbuf__IONBF__FAILED:__s
push 0x200
push eax
call fcn.004c53b7
add esp, 0x18
xor ebx, ebx
cmp dword [0x5e0988], ebx
je 0x42d5a5
cmp edi, 0xff
jge 0x42d538
inc edi
cmp dword [edi*4 + 0x5e0988], ebx
jne 0x42d524
jmp 0x42d5a5
xor edi, edi
or edx, 0xffffffff
xor eax, eax
mov ecx, dword [eax*4 + 0x5e0d88]
cmp ecx, edx
jae 0x42d54e
mov edi, eax
mov edx, ecx
inc eax
cmp eax, 0x100
jl 0x42d53f
inc dword [0x5e03e4]
cmp dword [0x5e03e4], 0xa
jge 0x42d588
push dword [edi*4 + 0x5e0488]
lea eax, [ebp - 0x6c]
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push str.:8:fopen_wrapper___s_____s___EAP:_the_register_is_full__This_indicates_an_fopen_fclose_leak__The_oldest_entry___s__has_been_deleted.
push 0x200
push eax
call fcn.004c53b7
add esp, 0x18
lea esi, [edi*4 + 0x5e0488]
mov eax, dword [esi]
cmp eax, ebx
mov dword [edi*4 + 0x5e0988], ebx
je 0x42d5a5
push eax
call fcn.00511758
pop ecx
mov dword [esi], ebx
mov eax, dword [ebp - 0x70]
mov esi, edi
shl esi, 2
mov dword [esi + 0x5e0988], eax
call fcn.004f16be
push dword [ebp - 0x78]
mov dword [esi + 0x5e0d88], eax
call fcn.005120b0
pop ecx
push 1
push dword [ebp - 0x80]
mov ebx, eax
call fcn.005120b0
pop ecx
lea eax, [eax + ebx + 0xa]
push eax
call fcn.00511988
test eax, eax
pop ecx
pop ecx
mov dword [esi + 0x5e0488], eax
jne 0x42d5f8
and dword [esi + 0x5e0988], eax
mov eax, dword [ebp - 0x70]
jmp 0x42d421
push dword [ebp - 0x78]
push eax
call fcn.005123e0
push str.rwbt
push dword [ebp - 0x74]
mov byte [edi + 0x5e0888], 0
call fcn.004c48c1
add esp, 0x10
test eax, eax
je 0x42d623
mov byte [edi + 0x5e0888], 1
push 0x5448b4
push dword [ebp - 0x74]
call fcn.004c48c1
test eax, eax
pop ecx
pop ecx
je 0x42d63d
or byte [edi + 0x5e0888], 2
push 0x5448b8
push dword [ebp - 0x74]
call fcn.004c48c1
test eax, eax
pop ecx
pop ecx
je 0x42d657
or byte [edi + 0x5e0888], 4
push 0x5448bc
push dword [ebp - 0x74]
call fcn.004c48c1
test eax, eax
pop ecx
pop ecx
je 0x42d671
or byte [edi + 0x5e0888], 8
push 0x53598c
push dword [ebp - 0x74]
call fcn.004c48c1
test eax, eax
pop ecx
pop ecx
je 0x42d68b
or byte [edi + 0x5e0888], 0x10
push 0x5448c0
push dword [ebp - 0x74]
call fcn.004c48c1
test eax, eax
pop ecx
pop ecx
je 0x42d6a5
or byte [edi + 0x5e0888], 0x20
mov eax, dword [esi + 0x5e0488]
push dword [ebp - 0x80]
lea eax, [eax + ebx + 1]
push eax
mov dword [esi + 0x5e1188], eax
call fcn.005123e0
mov eax, dword [ebp + 0x1a4]
pop ecx
pop ecx
lea edx, [ebp - 0x6c]
mov dword [esi + 0x5e1588], eax
call fcn.004c3b34
test eax, eax
jne 0x42d5f0
cmp dword [0x5e1988], eax
jne 0x42d5f0
lea eax, [ebp - 0x6c]
push eax
push 0x5304c0
mov dword [0x5e1988], 1
call fcn.00426c01
and dword [0x5e1988], 0
pop ecx
pop ecx
jmp 0x42d5f0