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

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x5f2e68]
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.005306b0
add esp, 0xc
mov edx, edi
call fcn.004ccc0d
test eax, eax
jne 0x434f4a
mov edx, ebx
call fcn.004ccc0d
test eax, eax
jne 0x434f4a
test esi, esi
jne 0x434e62
mov dword [ebp - 0x80], 0x54f4ea
push 0x200
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.005306b0
push edi
call fcn.00530f70
add esp, 0x10
cmp eax, 0x104
jb 0x434f64
mov eax, edi
call fcn.004cfb60
push ebx
mov esi, eax
call fcn.004cf997
test esi, esi
mov edi, eax
pop ecx
mov dword [ebp - 0x7c], edi
je 0x434f3f
test edi, edi
je 0x434f38
push edi
push esi
call fcn.00533b43
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
jne 0x434f25
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x434f25
test bl, 2
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
je 0x434eed
xor ebx, 2
push ebx
push esi
call edi
push dword [ebp - 0x7c]
push esi
call fcn.00533b43
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
jne 0x434f25
test bl, 4
je 0x434f0b
xor ebx, 4
push ebx
push esi
call edi
push dword [ebp - 0x7c]
push esi
call fcn.00533b43
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
jne 0x434f25
test bl, 1
je 0x434f25
xor ebx, 1
push ebx
push esi
call edi
push dword [ebp - 0x7c]
push esi
call fcn.00533b43
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
push esi
call fcn.0053061e
push dword [ebp - 0x7c]
call fcn.0053061e
jmp 0x434ff0
push esi
call fcn.0053061e
pop ecx
test edi, edi
je 0x434f4a
push edi
call fcn.0053061e
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
add ebp, 0x198
leave
ret
push ebx
push edi
call fcn.00533d08
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
jne 0x434ffc
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x434f4a
test bl, 2
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
je 0x434fae
xor ebx, 2
push ebx
push dword [ebp - 0x78]
call edi
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call fcn.00533d08
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
jne 0x434ffc
test bl, 4
je 0x434fd0
xor ebx, 4
push ebx
push dword [ebp - 0x78]
call edi
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call fcn.00533d08
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
jne 0x434ffc
test bl, 1
je 0x434f4a
xor ebx, 1
push ebx
push dword [ebp - 0x78]
call edi
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call fcn.00533d08
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
pop ecx
pop ecx
je 0x434f4a
xor edi, edi
push edi
push 4
push edi
push dword [ebp - 0x70]
call fcn.00533d1b
add esp, 0x10
test eax, eax
je 0x435041
inc dword [0x60e42c]
cmp dword [0x60e42c], 0xa
jge 0x435041
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.004ce4e5
add esp, 0x18
xor ebx, ebx
cmp dword [0x60e9d0], ebx
je 0x4350d0
cmp edi, 0xff
jge 0x435063
inc edi
cmp dword [edi*4 + 0x60e9d0], ebx
jne 0x43504f
jmp 0x4350d0
xor edi, edi
or edx, 0xffffffff
xor eax, eax
mov ecx, dword [eax*4 + 0x60edd0]
cmp ecx, edx
jae 0x435079
mov edi, eax
mov edx, ecx
inc eax
cmp eax, 0x100
jl 0x43506a
inc dword [0x60f9d0]
cmp dword [0x60f9d0], 0xa
jge 0x4350b3
push dword [edi*4 + 0x60e4d0]
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.004ce4e5
add esp, 0x18
lea esi, [edi*4 + 0x60e4d0]
mov eax, dword [esi]
cmp eax, ebx
mov dword [edi*4 + 0x60e9d0], ebx
je 0x4350d0
push eax
call fcn.0053061e
pop ecx
mov dword [esi], ebx
mov eax, dword [ebp - 0x70]
mov esi, edi
shl esi, 2
mov dword [esi + 0x60e9d0], eax
call fcn.004fa8e4
push dword [ebp - 0x78]
mov dword [esi + 0x60edd0], eax
call fcn.00530f70
pop ecx
push 1
push dword [ebp - 0x80]
mov ebx, eax
call fcn.00530f70
pop ecx
lea eax, [eax + ebx + 0xa]
push eax
call fcn.00530848
test eax, eax
pop ecx
pop ecx
mov dword [esi + 0x60e4d0], eax
jne 0x435123
and dword [esi + 0x60e9d0], eax
mov eax, dword [ebp - 0x70]
jmp 0x434f4c
push dword [ebp - 0x78]
push eax
call fcn.005312a0
push str.rwbt
push dword [ebp - 0x74]
mov byte [edi + 0x60e8d0], 0
call fcn.004cd9f0
add esp, 0x10
test eax, eax
je 0x43514e
mov byte [edi + 0x60e8d0], 1
push 0x566e8c
push dword [ebp - 0x74]
call fcn.004cd9f0
test eax, eax
pop ecx
pop ecx
je 0x435168
or byte [edi + 0x60e8d0], 2
push 0x566e90
push dword [ebp - 0x74]
call fcn.004cd9f0
test eax, eax
pop ecx
pop ecx
je 0x435182
or byte [edi + 0x60e8d0], 4
push 0x566e94
push dword [ebp - 0x74]
call fcn.004cd9f0
test eax, eax
pop ecx
pop ecx
je 0x43519c
or byte [edi + 0x60e8d0], 8
push 0x5557ec
push dword [ebp - 0x74]
call fcn.004cd9f0
test eax, eax
pop ecx
pop ecx
je 0x4351b6
or byte [edi + 0x60e8d0], 0x10
push 0x566e98
push dword [ebp - 0x74]
call fcn.004cd9f0
test eax, eax
pop ecx
pop ecx
je 0x4351d0
or byte [edi + 0x60e8d0], 0x20
mov eax, dword [esi + 0x60e4d0]
push dword [ebp - 0x80]
lea eax, [eax + ebx + 1]
push eax
mov dword [esi + 0x60f1d0], eax
call fcn.005312a0
mov eax, dword [ebp + 0x1a4]
pop ecx
pop ecx
lea edx, [ebp - 0x6c]
mov dword [esi + 0x60f5d0], eax
call fcn.004ccc0d
test eax, eax
jne 0x43511b
cmp dword [0x60f9d4], eax
jne 0x43511b
lea eax, [ebp - 0x6c]
push eax
push 0x54f4f0
mov dword [0x60f9d4], 1
call fcn.0042bd38
and dword [0x60f9d4], 0
pop ecx
pop ecx
jmp 0x43511b