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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], 0x402620
xor ebx, ebx
mov dword [0x439820], ebx
push edi
mov ecx, dword [esi]
mov edx, ecx
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x4119c1
movzx eax, word [ecx]
sub edx, edi
sar edx, 1
mov ebx, ecx
mov dword [ebp - 0x10], edx
mov edi, eax
test ax, ax
je 0x4119f0
xor edi, edi
mov eax, ecx
mov ebx, ecx
add ecx, 2
cmp word [ecx], di
jne 0x4119e1
movzx edi, word [eax]
push 0x3a
pop eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], eax
cmp di, ax
je 0x421af4
mov ecx, 0x250
call fcn.0040cbc0
test eax, eax
je 0x421c2c
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 4]
push 0x5c
pop edi
mov dword [ebp - 0xc], edi
movzx eax, word [eax]
cmp ax, di
je 0x411b59
mov ecx, dword [esi]
mov edx, edi
call fcn.0040f211
mov edi, eax
test edi, edi
je 0x421bb7
add edi, 2
xor ebx, ebx
push 0x402630
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x411b60
push 0x402628
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x411b60
cmp dword [0x4310d8], 4
je 0x411b34
push dword [esi]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x411b24
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [0x439820], eax
xor ebx, ebx
inc ebx
xor eax, eax
mov edi, eax
mov eax, dword [esi]
mov edx, eax
movzx ecx, word [edx]
test cx, cx
je 0x411ac7
cmp cx, word [ebp - 0xc]
je 0x411ac3
cmp cx, word [ebp - 0x14]
je 0x411abe
add edx, 2
inc ebx
jmp 0x411aa4
cmp ebx, 2
jne 0x411ab8
mov edi, edx
jmp 0x411ab8
mov dword [esi + 0xc], edi
test edi, edi
je 0x421c25
xor eax, eax
cmp word [edi], ax
je 0x421c1e
lea eax, [edi + 2]
push 0x2a
pop edx
mov ecx, edi
mov dword [esi + 0x10], eax
call fcn.0040f66b
test eax, eax
je 0x411b14
or dword [esi + 0x1c], 8
mov dword [0x4397d8], 1
push 0x2e
pop edx
mov ecx, edi
call fcn.0040f66b
mov dword [esi + 0x14], eax
xor eax, eax
pop edi
pop esi
inc eax
pop ebx
leave
ret
push 0x3f
pop edx
mov ecx, edi
call fcn.0040f66b
test eax, eax
je 0x411aff
jmp 0x411af1
mov dword [0x439820], ebx
test al, 0x10
je 0x411a99
jmp 0x411b60
cmp dword [0x4397e8], 1
je 0x411a7d
cmp dword [0x4310d4], 1
jne 0x411a99
mov dword [0x4310d4], ebx
jmp 0x411a7d
mov dword [ebp - 8], 0x402622
mov edi, dword [esi]
mov ecx, edi
push 0x5c
pop eax
mov edx, eax
call fcn.0040f211
test eax, eax
je 0x421bed
mov edi, dword [ebp - 0x10]
mov ebx, dword [esi]
add edi, 5
lea ecx, [edi + edi]
call fcn.0040cbc0
test eax, eax
je 0x421c2c
push ebx
mov edx, edi
mov dword [esi], eax
mov ecx, eax
call fcn.0040dfe0
push dword [ebp - 8]
mov ecx, dword [esi]
mov edx, edi
call fcn.0040ebf0
mov eax, dword [esi + 0x18]
mov dword [eax], 0x10
jmp 0x411a99
cmp edx, 2
jle 0x411a02
xor eax, eax
mov word [ebx], ax
lea eax, [ebx - 2]
mov dword [ebp - 4], eax
xor eax, eax
push eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetErrorMode]
push ecx
mov ecx, dword [esi]
mov edx, 0x8000
mov dword [ebp - 0xc], eax
call fcn.00410110
mov edi, eax
cmp edi, 0xffffffff
je 0x421b54
mov ecx, edi
call fcn.0040cc8e
test eax, eax
jne 0x421b3e
mov ecx, edi
call fcn.0042d545
test eax, eax
je 0x421b54
mov ecx, edi
call fcn.0040cc8e
test eax, eax
jne 0x421ba2
mov ecx, edi
call fcn.0042d545
test eax, eax
jmp 0x421ba0
cmp dword [0x4310d8], 4
push 0x3a
pop eax
mov dword [ebp - 4], ebx
mov word [ebx], ax
jne 0x421b8c
cmp dword [0x4397e4], 0
jne 0x421b80
push dword [esi]
push 1
push 0x236b
call fcn.004128ff
add esp, 0xc
mov dword [0x4397e0], 1
jmp 0x421b9d
push dword [esi]
push 1
push 0x236b
call fcn.004128ff
add esp, 0xc
cmp edi, 0xffffffff
je 0x421ba9
mov ecx, edi
call fcn.0040fa2d
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetErrorMode]
jmp 0x411a02
mov edi, dword [esi]
xor ebx, ebx
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x421bc0
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jb 0x411a44
push 0x3a
pop eax
cmp word [edi + 2], ax
jne 0x411a44
add edi, 4
jmp 0x411a44
mov ecx, edi
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x421bf4
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jne 0x411b76
push 0x3a
pop eax
cmp word [edi + 2], ax
je 0x411ba6
jmp 0x411b76
mov eax, edi
jmp 0x411ae0
mov edi, eax
jmp 0x411ae0
call fcn.0042ce7c
push 1
push 0x443a98
call dword [sym.imp.msvcrt.dll_longjmp]
int3