Function at 0x41a310
Capabilities:
Check if file exists
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x318
call fcn.0041cce0
lea esi, [ebp - 0x324]
push 0x104
push 0
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
lea edi, [ebp - 0x220]
push 0x104
push 0
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
lea ebx, [ebp - 0x11c]
push 0x104
push 0
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x41a56d
push 0
push 0
push edi
push ebx
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__splitpath]
add esp, 0x14
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
test eax, eax
je 0x41a56d
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
test eax, eax
je 0x41a56d
mov edi, eax
push eax
call fcn.00401350
add esp, 4
mov esi, ebx
mov ebx, eax
push eax
call fcn.00402080
add esp, 4
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionA]
push edi
call fcn.00401350
add esp, 4
mov edi, eax
push 0x42ed10
push eax
call fcn.00401670
add esp, 8
push esi
call fcn.00401350
add esp, 4
mov esi, eax
push dword [edi]
push eax
call fcn.00401670
add esp, 8
push esi
call fcn.00408070
add esp, 4
test al, al
je 0x41a588
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41a429
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x41a5a3
mov edi, dword [ebp + 0xc]
cmp dword [ebp + 8], 2
jl 0x41a478
mov esi, 1
nop word [eax + eax]
mov edi, dword [edi + esi*4]
push 6
push 0x42ed15
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
je 0x41a4d7
push 0xb
push str.__dsdefault
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
je 0x41a4d7
inc esi
cmp dword [ebp + 8], esi
mov edi, dword [ebp + 0xc]
jne 0x41a440
test ebx, ebx
je 0x41a485
push ebx
call fcn.00401560
add esp, 4
push dword [ebp - 0x14]
call fcn.00401560
add esp, 4
push dword [ebp - 0x10]
call fcn.00401560
add esp, 4
cmp dword [ebp + 8], 2
jl 0x41a4d0
mov esi, 1
nop word cs:[eax + eax]
push 0xa
push str.__dsmanage
push dword [edi + esi*4]
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
je 0x41a550
inc esi
cmp dword [ebp + 8], esi
jne 0x41a4b0
push 0
jmp 0x41a552
mov ebx, 1
push 1
call fcn.004081c0
add esp, 4
mov esi, eax
mov edi, dword [ebp + 0xc]
nop dword [eax + eax]
push dword [edi + ebx*4]
call fcn.00401350
add esp, 4
mov dword [ebp - 0x18], eax
push 1
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.004082e0
add esp, 0xc
inc ebx
cmp dword [ebp + 8], ebx
jne 0x41a4f0
push esi
push dword [ebp - 0x10]
call fcn.004086b0
add esp, 8
cmp dword [esi + 8], 0
je 0x41a543
xor edi, edi
nop word [eax + eax]
mov eax, dword [esi]
push dword [eax + edi*4]
call fcn.00401560
add esp, 4
inc edi
cmp edi, dword [esi + 8]
jb 0x41a530
push esi
call fcn.00408240
add esp, 4
xor eax, eax
jmp 0x41a562
push 1
lea eax, [ebp - 0x11c]
push eax
push ebx
call fcn.0041acc0
add esp, 0xc
add esp, 0x318
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x10
push 0x42ed59
push str.Could_not_initialize_the_host_process
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push 0x10
push 0x42ed59
push 0x42ed62
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push 0x10
push 0x42ed59
push str.The_host_process_could_not_find_the_shared_DLL
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3