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

Disassembly:
push 0x5c
mov eax, 0x55e7dd
call fcn.0055b22a
mov esi, ecx
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.0041e9a8
mov ecx, eax
mov dword [ebp - 0x48], 1
xor eax, eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x4c], eax
push 0x5c
pop edi
test ecx, ecx
js 0x41dafc
lea ecx, [ebx + ecx*2]
cmp word [ecx + 2], ax
je 0x41dafc
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
push ecx
lea ecx, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0041c594
xor eax, eax
lea edi, [ebp - 0x2c]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x2c]
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0041c594
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x44]
cmp edi, dword [ebp - 0x28]
jae 0x41d96f
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [ebp - 0x28], edi
mov word [eax + edi*2], cx
mov ecx, dword [ebp - 0x1c]
cmp ecx, 6
jbe 0x41d98e
mov eax, dword [ebp - 0x20]
add ecx, 0xfffffffa
mov edx, str.:_DATA
lea ecx, [eax + ecx*2]
call fcn.0041c2ff
test al, al
jne 0x41d99b
push str.:_DATA
lea ecx, [ebp - 0x20]
call fcn.0041c936
mov ecx, dword [ebp - 0x2c]
call fcn.0041e8cc
test al, al
je 0x41d9e0
cmp edi, 2
je 0x41d9ba
cmp edi, 3
jne 0x41d9e0
push 0x5c
pop eax
cmp word [ecx + 4], ax
jne 0x41d9e0
mov ecx, esi
call fcn.0041d5da
lea ecx, [esi + 0x28]
xor ebx, ebx
mov eax, dword [ecx]
xor edx, edx
mov dword [ecx + 4], ebx
mov word [eax], dx
cmp edi, 2
jne 0x41d9f5
lea eax, [ebp - 0x2c]
push eax
call fcn.0041c6b4
jmp 0x41d9f5
push dword [ebp + 0xc]
push ecx
mov ecx, esi
call fcn.0041d8f3
test al, al
je 0x41dae6
xor ebx, ebx
and dword [esi + 0x20], 0xfffffbef
lea edi, [ebp - 0x3c]
xor eax, eax
mov dword [esi], ebx
stosd dword es:[edi], eax
mov dword [esi + 4], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
or dword [ebp - 0x3c], 0xffffffff
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x38]
call fcn.0041c61b
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.0041c570
jmp 0x41da56
cmp byte [ebp - 0x3d], 0
je 0x41daa8
push dword [ebp - 0x20]
lea ecx, [ebp - 0x64]
call fcn.004064ce
test al, al
jne 0x41da70
mov byte [ebp - 4], 3
push dword [ebp - 0x64]
call fcn.0054b686
pop ecx
lea ecx, [ebp - 0x64]
call fcn.0041c570
lea eax, [ebp - 0x3d]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0041d84d
test al, al
jne 0x41da2c
jmp 0x41dab0
mov eax, dword [ebp - 0x60]
mov edi, dword [ebp - 0x64]
cmp eax, 7
jbe 0x41da8b
lea ecx, [eax - 6]
cmp ecx, eax
jae 0x41da8b
xor eax, eax
mov dword [ebp - 0x60], ecx
mov word [edi + ecx*2], ax
lea eax, [ebp - 0x64]
lea ecx, [esi + 0x28]
push eax
call fcn.0041c8f8
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov byte [esi + 0x24], 1
jmp 0x41dab6
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp - 0x64]
mov byte [ebp - 0x48], bl
push edi
call fcn.0054b686
push dword [ebp - 0x38]
call fcn.0054b686
pop ecx
pop ecx
lea ecx, [ebp - 0x3c]
call fcn.0041d71b
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0054b686
push dword [ebp - 0x20]
call fcn.0054b686
pop ecx
pop ecx
jmp 0x41dd01
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0054b686
push dword [ebp - 0x20]
call fcn.0054b686
pop ecx
pop ecx
push 0x5c
pop edi
or dword [ebp - 0x14], 0xffffffff
mov ecx, ebx
mov dword [ebp - 4], 5
call fcn.0041e8e7
movzx edx, al
shl edx, 2
lea eax, [ebx + edx*2]
mov ecx, eax
mov dword [ebp - 0x44], eax
call fcn.0041e72e
test al, al
je 0x41db7f
xor eax, eax
cmp word [ebx + edx*2 + 6], ax
jne 0x41db81
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
cmp edx, 0xffffffff
je 0x41dc98
test dl, 0x10
je 0x41dc98
mov ecx, esi
call fcn.0041d5da
push dword [ebp - 0x44]
lea ecx, [esi + 0x28]
mov dword [esi + 0x20], edx
call fcn.0041c64c
push 2
pop eax
cmp dword [esi + 0x2c], eax
jbe 0x41db72
mov dword [esi + 0x2c], eax
xor ecx, ecx
mov eax, dword [esi + 0x28]
mov word [eax + 4], cx
push ebx
mov ecx, esi
call fcn.0041dd0c
jmp 0x41dd01
xor eax, eax
movzx ecx, word [ebx]
cmp cx, di
je 0x41db92
cmp ecx, 0x2f
jne 0x41dc98
cmp word [ebx + 2], ax
jne 0x41dbcf
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
cmp edx, 0xffffffff
je 0x41dc98
test dl, 0x10
je 0x41dc98
mov ecx, esi
call fcn.0041d5da
xor eax, eax
xor ecx, ecx
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x28]
mov word [eax], cx
mov dword [esi + 0x20], edx
jmp 0x41dd01
mov ecx, ebx
call fcn.0041e876
test eax, eax
je 0x41dc98
lea edi, [ebx + eax*2]
xor eax, eax
mov dword [ebp - 0x68], edi
cmp word [edi], ax
je 0x41dc98
mov ecx, edi
call fcn.0041e6ea
test eax, eax
jns 0x41dc98
push ebx
mov ecx, esi
call fcn.0041dd0c
test al, al
je 0x41dc18
lea ecx, [esi + 0x28]
push edi
call fcn.0041c64c
jmp 0x41dd01
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x20]
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0041c594
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call fcn.00402f0c
push 0x2a
lea ecx, [ebp - 0x20]
call fcn.0041c80a
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
push esi
push edi
mov dword [ebp - 0x44], edi
call fcn.0041d73a
test al, al
je 0x41dc6d
lea edi, [esi + 0x28]
mov edx, 0x56928c
mov ecx, edi
call fcn.00402f73
test al, al
jne 0x41dcd9
mov edi, dword [ebp - 0x44]
mov byte [ebp - 0x4c], 1
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
cmp edx, 0xffffffff
jne 0x41dc7d
or edx, eax
cmp byte [ebp - 0x4c], 0
jne 0x41dcc4
cmp edx, 0xffffffff
je 0x41dc8d
test dl, 0x10
jne 0x41dcc4
push edi
mov byte [ebp - 4], 5
call fcn.0054b686
pop ecx
push esi
push ebx
lea ecx, [ebp - 0x14]
call fcn.0041d73a
cmp byte [ebp + 0xc], 0
je 0x41dcef
test al, al
je 0x41dcef
mov ecx, dword [esi + 0x20]
shr ecx, 0xa
test cl, 1
je 0x41dcef
push ebx
mov ecx, esi
call fcn.0041dd0c
mov byte [ebp - 0x48], al
jmp 0x41dcf2
mov ecx, esi
call fcn.0041d5da
cmp edx, 0xffffffff
jne 0x41dcd3
push 0x10
pop edx
mov dword [esi + 0x20], edx
lea edi, [esi + 0x28]
push dword [ebp - 0x68]
mov ecx, edi
call fcn.0041c64c
push dword [ebp - 0x44]
call fcn.0054b686
xor eax, eax
pop ecx
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x41dd01
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [ebp - 0x48]
call fcn.0055b1d9
ret 8