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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x2c
mov esi, ecx
push dword [ebp + 0x10]
mov dword [esi + 0x94], eax
call fcn.004187e6
mov edi, dword [ebp + 0x14]
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
je 0x414702
push dword [ebp + 0x10]
and byte [ebx], 0
call fcn.004187db
mov byte [esi + 0x84], al
inc dword [edi]
pop ecx
push dword [ebp + 0xc]
mov dword [esi + 0x68], 0x3e8
mov eax, dword [edi]
lea ecx, [esi + 0x30]
mov dword [esi + 0x2c], eax
call fcn.004020be
inc ebx
push 0x2c
push ebx
call fcn.004187e6
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x414982
and byte [edi], 0
push ebx
call fcn.004187db
neg eax
sbb eax, eax
pop ecx
neg eax
mov dword [esi + 0x3c], eax
je 0x414982
lea ebx, [edi + 1]
push 0x2c
push ebx
call fcn.004187e6
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x414982
and byte [edi], 0
push ebx
call fcn.004187db
neg eax
sbb eax, eax
push 0x2c
neg eax
inc edi
mov dword [esi + 0x40], eax
push edi
call fcn.004187e6
add esp, 0xc
mov ebx, eax
cmp byte [edi], 0x20
jne 0x414786
inc edi
jmp 0x41477e
test ebx, ebx
je 0x414982
mov al, byte [edi]
cmp al, 0x30
jl 0x414798
cmp al, 0x39
jle 0x41479c
cmp al, 0x2d
jne 0x4147b8
and byte [ebx], 0
push edi
call fcn.004187db
lea edi, [ebx + 1]
push 0x2c
push edi
mov dword [esi + 0x68], eax
call fcn.004187e6
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x414982
and byte [ebx], 0
push 0x3b
push edi
call fcn.004187e6
pop ecx
test eax, eax
pop ecx
je 0x4147de
and byte [eax], 0
inc eax
push eax
lea ecx, [esi + 0x5c]
call fcn.004020be
push edi
lea ecx, [esi + 0x50]
call fcn.004020be
mov eax, dword [esi + 0x94]
and dword [ebp + 8], 0
lea edi, [esi + 0x44]
inc ebx
mov eax, dword [eax + 8]
push ebx
mov ecx, edi
mov dword [ebp + 0x10], eax
call fcn.004020be
mov ecx, edi
call fcn.00402ab4
test eax, eax
je 0x41485d
mov ecx, dword [edi]
test ecx, ecx
je 0x41481b
call fcn.00402193
jmp 0x41481d
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41485d
mov edi, dword [edi]
test edi, edi
je 0x414838
mov ecx, edi
call fcn.00402193
jmp 0x41483a
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp + 0x10], eax
je 0x414851
mov dword [ebp + 8], 1
jmp 0x41485d
mov eax, dword [esi + 0x94]
mov eax, dword [eax + 8]
mov dword [ebp + 0x10], eax
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x41486b
call fcn.00402193
jmp 0x41486d
xor eax, eax
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea eax, [ebp - 0x64]
push 0x425f24
push eax
call edi
add esp, 0xc
cmp byte [ebp - 0x64], 0
je 0x414899
lea eax, [ebp - 0x64]
cmp byte [eax], 0x20
jne 0x414893
mov byte [eax], 0x5f
inc eax
cmp byte [eax], 0
jne 0x41488b
mov ebx, dword [ebp + 0x10]
mov ecx, dword [esi + 0x94]
lea eax, [ebp - 0x64]
push eax
push ebx
call fcn.00404542
mov dword [esi + 0x6c], eax
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x4148bd
call fcn.00402193
jmp 0x4148bf
xor eax, eax
push eax
lea eax, [ebp - 0x64]
push 0x425c4c
push eax
call edi
add esp, 0xc
cmp byte [ebp - 0x64], 0
je 0x4148e5
lea eax, [ebp - 0x64]
cmp byte [eax], 0x20
jne 0x4148df
mov byte [eax], 0x5f
inc eax
cmp byte [eax], 0
jne 0x4148d7
mov ecx, dword [esi + 0x94]
lea eax, [ebp - 0x64]
push eax
push ebx
call fcn.00404542
mov dword [esi + 0x78], eax
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x414906
call fcn.00402193
jmp 0x414908
xor eax, eax
push eax
lea eax, [ebp - 0x64]
push 0x425c2c
push eax
call edi
add esp, 0xc
cmp byte [ebp - 0x64], 0
je 0x41492e
lea eax, [ebp - 0x64]
cmp byte [eax], 0x20
jne 0x414928
mov byte [eax], 0x5f
inc eax
cmp byte [eax], 0
jne 0x414920
push 0
push 0x10
push 0x10
lea eax, [ebp - 0x64]
push 1
push eax
push ebx
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [esi + 0x7c], eax
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x414952
call fcn.00402193
jmp 0x414954
xor eax, eax
push eax
mov eax, dword [esi + 0x94]
push dword [eax + 8]
call fcn.0040a189
pop ecx
pop ecx
push eax
lea ecx, [esi + 0x88]
call fcn.004020be
cmp dword [ebp + 8], 0
je 0x41497e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x414985
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 0x10