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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4310b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x230], eax
mov eax, dword [ebp + 0x18]
push esi
mov esi, ecx
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp + 0x1c]
mov ecx, 0x402304
push edi
mov edi, edx
mov dword [ebp - 0x234], eax
call fcn.004118c0
mov edx, edi
mov ecx, eax
call fcn.0040557b
mov ecx, dword [esi + 0x3c]
xor eax, eax
push eax
xor edx, edx
mov dword [ebp - 0x228], eax
call fcn.0040ab20
mov ebx, eax
mov edx, edi
mov ecx, ebx
call fcn.0040557b
test eax, eax
je 0x4052bb
movzx eax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4052b0
mov esi, ebx
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x4052c2
sub esi, ecx
sar esi, 1
je 0x41cc16
cmp esi, 0x7fe7
jae 0x41cd5b
mov edi, ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, dx
jne 0x4052e8
sub edi, ecx
mov ecx, ebx
sar edi, 1
call fcn.0040f070
push eax
lea edx, [edi + 1]
mov ecx, ebx
call fcn.0040dfe0
mov ecx, ebx
call fcn.00411f41
mov ecx, dword [ebp - 0x22c]
mov dword [ecx], eax
cmp eax, 1
je 0x41cc0e
xor eax, eax
mov byte [ebp - 0x14], 1
mov edi, 0x104
mov dword [ebp - 0x18], eax
push edi
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x10], edi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
lea ecx, [ebp - 0x220]
add esp, 0xc
cmp byte [ebp - 0x14], al
sete al
dec eax
and eax, 0x7ee3
add eax, edi
push eax
call fcn.0040d300
test eax, eax
js 0x41cc20
inc esi
xor edi, edi
lea esi, [ebx + esi*2]
cmp word [esi], di
je 0x41cc27
mov ecx, esi
call fcn.00409397
cmp word [eax], di
jne 0x41cc16
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x405389
sub ecx, edx
sar ecx, 1
cmp ecx, 0x7fe7
ja 0x41cd5b
mov edi, esi
xor edx, edx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, dx
jne 0x4053ab
sub edi, ecx
mov ecx, esi
sar edi, 1
call fcn.0040f070
push eax
lea edx, [edi + 1]
mov ecx, esi
call fcn.0040dfe0
movzx eax, word [esi + 2]
push 0x3a
pop edx
cmp ax, dx
jne 0x41cc6b
push esi
lea ecx, [ebp - 0x220]
call fcn.0040f229
mov edi, dword [ebp + 0xc]
mov edx, edi
mov esi, dword [ebp - 0x224]
mov ecx, esi
push ebx
call fcn.00411809
test eax, eax
jne 0x41cd5b
mov ebx, dword [ebp - 0x22c]
mov eax, dword [ebx]
mov eax, dword [eax + 0x18]
test byte [eax], 0x10
jne 0x405456
push 0x5c
pop edx
mov ecx, esi
call fcn.0040f211
mov esi, eax
test esi, esi
je 0x41cd0e
add esi, 2
mov ecx, dword [ebx]
push 0x5c
pop edx
mov ecx, dword [ecx + 0x10]
call fcn.0040f211
test eax, eax
jne 0x405440
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
push eax
mov eax, esi
mov ecx, esi
sub eax, dword [ebp - 0x224]
sar eax, 1
sub edi, eax
mov edx, edi
call fcn.0040dfe0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41cd19
mov ebx, dword [ebp - 0x230]
mov ecx, ebx
mov edx, dword [ebp + 0x14]
push eax
call fcn.00411809
test eax, eax
jne 0x41cd5b
push eax
mov esi, eax
mov dword [0x439820], eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov edi, dword [ebp - 0x234]
xor eax, eax
mov ecx, ebx
mov dword [edi], eax
movzx eax, word [ebx]
mov edx, eax
test ax, ax
je 0x4054ad
xor edx, edx
mov eax, ecx
add ecx, 2
cmp word [ecx], dx
jne 0x4054a0
movzx edx, word [eax]
push 0x5c
pop eax
cmp dx, ax
je 0x41cd24
push ebx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405508
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [0x439820], eax
test eax, eax
je 0x4054dd
cmp eax, 2
jne 0x41cd4b
test esi, esi
jne 0x405515
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov dword [ebp - 0x18], ecx
test eax, eax
je 0x4054f5
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417b90
leave
ret 0x18
test al, 0x10
je 0x4054dd
xor eax, eax
inc eax
mov dword [edi], eax
mov esi, eax
jmp 0x4054dd
mov ecx, dword [ebp - 0x224]
push 0x5c
pop eax
mov edx, eax
call fcn.0040f211
mov edx, eax
xor esi, esi
mov edi, edx
lea eax, [edi + 2]
mov cx, word [edi]
add edi, 2
cmp cx, si
jne 0x40552e
mov esi, ebx
sub edi, eax
sar edi, 1
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, word [ebp - 0x228]
jne 0x405542
sub esi, ecx
lea eax, [edi + 1]
sar esi, 1
add eax, esi
cmp eax, 0x7fe7
ja 0x41cd5b
push edx
mov edx, dword [ebp + 0x14]
mov ecx, ebx
call fcn.0040ebf0
jmp 0x4054e1
mov ecx, dword [0x439820]
jmp 0x41cc1b
mov ecx, 0x232a
call fcn.00429ec0
mov ecx, 0x2374
jmp 0x41cc1b
mov eax, dword [0x43981c]
movzx ecx, word [eax]
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x41cc3c
lea eax, [ebp - 0x220]
mov word [eax], cx
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x41cc4c
lea eax, [ebp - 0x220]
push 0x3a
pop ecx
mov word [eax + 2], cx
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x41cc60
lea eax, [ebp - 0x220]
xor ecx, ecx
mov word [eax + 4], cx
jmp 0x4053e8
push 0x5c
pop ecx
cmp word [esi], cx
jne 0x41cc7c
cmp ax, cx
je 0x4053dc
mov eax, dword [0x43981c]
movzx ecx, word [eax]
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x41cc91
lea eax, [ebp - 0x220]
mov word [eax], cx
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x41cca1
lea eax, [ebp - 0x220]
mov word [eax + 2], dx
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x41ccb2
lea eax, [ebp - 0x220]
xor ecx, ecx
mov word [eax + 4], cx
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x41ccc5
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
xor edi, edi
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x41ccca
sub ecx, edx
mov edx, esi
sar ecx, 1
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp - 0x228]
jne 0x41ccde
sub edx, edi
lea eax, [ecx + 1]
sar edx, 1
add eax, edx
cmp eax, 0x7fe7
ja 0x41cd5b
push esi
lea ecx, [ebp - 0x220]
call fcn.004121c1
jmp 0x4053e8
mov esi, dword [ebp - 0x224]
jmp 0x40542a
lea eax, [ebp - 0x220]
jmp 0x405461
mov ecx, ebx
xor esi, esi
inc esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x228]
jne 0x41cd2c
sub ecx, edx
sar ecx, 1
xor eax, eax
mov word [ebx + ecx*2 - 2], ax
jmp 0x4054b9
cmp eax, 3
je 0x4054dd
mov ecx, eax
jmp 0x41cc1b
mov ecx, 0x232e
jmp 0x41cc1b