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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4b22d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x1ff
lea eax, [ebp - 0x203]
mov edi, ecx
mov ebx, edx
push 0
push eax
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x218], esi
mov byte [ebp - 0x204], 0
call fcn.00401f80
add esp, 0xc
mov edx, edi
call fcn.00436c5d
test eax, eax
jne 0x473db2
mov edx, ebx
call fcn.00436c5d
test eax, eax
jne 0x473db2
test esi, esi
jne 0x473cac
mov dword [ebp - 0x218], 0x48dbe7
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.00401f80
push edi
call fcn.00401a80
add esp, 0x10
cmp eax, 0x104
jb 0x473dc3
mov eax, edi
call fcn.00436e28
push ebx
mov esi, eax
call fcn.004353f7
mov edi, eax
pop ecx
mov dword [ebp - 0x214], edi
test esi, esi
je 0x473da7
test edi, edi
je 0x473da0
push edi
push esi
call fcn.0040375c
pop ecx
pop ecx
mov dword [ebp - 0x208], eax
test eax, eax
jne 0x473d8a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x473d8a
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 2
je 0x473d46
xor ebx, 2
push ebx
push esi
call edi
push dword [ebp - 0x214]
push esi
call fcn.0040375c
pop ecx
pop ecx
mov dword [ebp - 0x208], eax
test eax, eax
jne 0x473d8a
test bl, 4
je 0x473d6a
xor ebx, 4
push ebx
push esi
call edi
push dword [ebp - 0x214]
push esi
call fcn.0040375c
pop ecx
pop ecx
mov dword [ebp - 0x208], eax
test eax, eax
jne 0x473d8a
test bl, 1
je 0x473d8a
xor ebx, 1
push ebx
push esi
call edi
push dword [ebp - 0x214]
push esi
call fcn.0040375c
pop ecx
pop ecx
mov dword [ebp - 0x208], eax
push esi
call fcn.00401a00
push dword [ebp - 0x214]
call fcn.00401a00
jmp 0x473e76
push esi
call fcn.00401a00
pop ecx
test edi, edi
je 0x473db2
push edi
call fcn.00401a00
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
push ebx
push edi
call fcn.0040382f
pop ecx
pop ecx
mov dword [ebp - 0x208], eax
test eax, eax
jne 0x473e85
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x473db2
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test bl, 2
je 0x473e1c
xor ebx, 2
push ebx
push dword [ebp - 0x210]
call edi
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
call fcn.0040382f
pop ecx
pop ecx
mov dword [ebp - 0x208], eax
test eax, eax
jne 0x473e85
test bl, 4
je 0x473e4a
xor ebx, 4
push ebx
push dword [ebp - 0x210]
call edi
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
call fcn.0040382f
pop ecx
pop ecx
mov dword [ebp - 0x208], eax
test eax, eax
jne 0x473e85
test bl, 1
je 0x473db2
xor ebx, 1
push ebx
push dword [ebp - 0x210]
call edi
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
call fcn.0040382f
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
pop ecx
pop ecx
je 0x473db2
xor edi, edi
push edi
push 4
push edi
push dword [ebp - 0x208]
call fcn.00403846
add esp, 0x10
test eax, eax
je 0x473ed6
inc dword [0x4c6afc]
cmp dword [0x4c6afc], 0xa
jge 0x473ed6
push str._GetLastError_
push dword [ebp - 0x20c]
lea eax, [ebp - 0x204]
push dword [ebp - 0x210]
push str.:2:fopen_wrapper___s_____s___EAP:_setvbuf__IONBF__FAILED:__s
push 0x200
push eax
call fcn.004362e2
add esp, 0x18
xor ebx, ebx
cmp dword [0x4c71a8], ebx
je 0x473f6e
cmp edi, 0xff
jge 0x473ef8
inc edi
cmp dword [edi*4 + 0x4c71a8], ebx
jne 0x473ee4
jmp 0x473f6e
xor edi, edi
or edx, 0xffffffff
xor eax, eax
mov ecx, dword [eax*4 + 0x4c75a8]
cmp ecx, edx
jae 0x473f0e
mov edi, eax
mov edx, ecx
inc eax
cmp eax, 0x100
jl 0x473eff
inc dword [0x4c6c04]
cmp dword [0x4c6c04], 0xa
jge 0x473f51
push dword [edi*4 + 0x4c6ca8]
lea eax, [ebp - 0x204]
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
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.004362e2
add esp, 0x18
lea esi, [edi*4 + 0x4c6ca8]
mov eax, dword [esi]
mov dword [edi*4 + 0x4c71a8], ebx
cmp eax, ebx
je 0x473f6e
push eax
call fcn.00401a00
pop ecx
mov dword [esi], ebx
mov eax, dword [ebp - 0x208]
mov esi, edi
mov dword [esi*4 + 0x4c71a8], eax
call fcn.00419a8b
push dword [ebp - 0x210]
mov dword [esi*4 + 0x4c75a8], eax
call fcn.00401a80
pop ecx
push 1
push dword [ebp - 0x218]
mov ebx, eax
call fcn.00401a80
pop ecx
lea eax, [eax + ebx + 0xa]
push eax
call fcn.00401a3a
pop ecx
pop ecx
mov dword [esi*4 + 0x4c6ca8], eax
test eax, eax
jne 0x473fce
and dword [esi*4 + 0x4c71a8], eax
mov eax, dword [ebp - 0x208]
jmp 0x473db4
push dword [ebp - 0x210]
push eax
call fcn.00401ba0
push str.rwbt
push dword [ebp - 0x20c]
mov byte [edi + 0x4c70a8], 0
call fcn.004365f4
add esp, 0x10
test eax, eax
je 0x473fff
mov byte [edi + 0x4c70a8], 1
push 0x4904ac
push dword [ebp - 0x20c]
call fcn.004365f4
pop ecx
pop ecx
test eax, eax
je 0x47401c
or byte [edi + 0x4c70a8], 2
push 0x4904b0
push dword [ebp - 0x20c]
call fcn.004365f4
pop ecx
pop ecx
test eax, eax
je 0x474039
or byte [edi + 0x4c70a8], 4
push 0x4904b4
push dword [ebp - 0x20c]
call fcn.004365f4
pop ecx
pop ecx
test eax, eax
je 0x474056
or byte [edi + 0x4c70a8], 8
push 0x48de34
push dword [ebp - 0x20c]
call fcn.004365f4
pop ecx
pop ecx
test eax, eax
je 0x474073
or byte [edi + 0x4c70a8], 0x10
push 0x4904b8
push dword [ebp - 0x20c]
call fcn.004365f4
pop ecx
pop ecx
test eax, eax
je 0x474090
or byte [edi + 0x4c70a8], 0x20
mov eax, dword [esi*4 + 0x4c6ca8]
push dword [ebp - 0x218]
lea eax, [eax + ebx + 1]
push eax
mov dword [esi*4 + 0x4c79a8], eax
call fcn.00401ba0
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
lea edx, [ebp - 0x204]
mov dword [esi*4 + 0x4c7da8], eax
call fcn.00436c5d
test eax, eax
jne 0x473fc3
cmp dword [0x4c6ca4], eax
jne 0x473fc3
and dword [0x4c6ca4], eax
jmp 0x473fc3