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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a0a8
mov eax, dword fs:[0]
push eax
sub esp, 0xa6c
mov eax, dword [0x469070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0xa1c], ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0xa20], 0
mov dword [ebp - 4], 0
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 8
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4191dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4191dd
cmp byte [ebp + 0x24], 0
jne 0x4191dd
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
lea eax, [ebp + 0xc]
push eax
call fcn.00411700
lea ecx, [ebp + 0xc]
call fcn.0040f910
jmp 0x4194b3
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push ecx
cmovae eax, dword [ebp + 0xc]
mov edx, 0x104
push eax
push ecx
lea ecx, [ebp - 0x218]
call fcn.004173b0
test eax, eax
jns 0x419254
push 0x208
push 0x46d350
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
mov edx, 0x46d350
mov ecx, str.Unknown_module._GetModuleFileName___failed_too.
cmovne ecx, edx
push ecx
call esi
push str.StringCbCopy___Buffer_overrun
mov edi, eax
push 0xbf
push str.CAxCryptLibWin.h
call esi
push eax
push 0x10
push edi
push str.Failed_assertion_in__s_at_line__d_n_n_s
call fcn.00427590
add esp, 0x18
push 1
call fcn.004316e6
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov edi, eax
cmp word [edi], 0
je 0x41936e
push edi
push 0x45d538
lea eax, [ebp - 0xa18]
push 0x800
push eax
call fcn.00412710
add esp, 0x10
test eax, eax
jns 0x4192c6
push 0x208
push 0x46d350
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
mov edx, 0x46d350
mov ecx, str.Unknown_module._GetModuleFileName___failed_too.
cmovne ecx, edx
push ecx
call esi
push str.StringCbPrintf___failed
mov edi, eax
push 0xc4
jmp 0x419235
lea ecx, [ebp - 0xa18]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4192d0
sub ecx, edx
lea ebx, [ebp - 0xa16]
sar ecx, 1
lea eax, [ebp - 0xa18]
push edi
push 0x45d538
lea ebx, [ebx + ecx*2]
mov ecx, ebx
sub ecx, eax
mov eax, 0x7ff
and ecx, 0xfffffffe
sub eax, ecx
push eax
push ebx
call fcn.00412710
add esp, 0x10
test eax, eax
jns 0x41934b
push 0x208
push 0x46d350
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
mov edx, 0x46d350
mov ecx, str.Unknown_module._GetModuleFileName___failed_too.
cmovne ecx, edx
push ecx
call esi
push str.StringCbPrintf_failed
mov edi, eax
push 0xc7
jmp 0x419235
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419350
sub ecx, edx
sar ecx, 1
xor eax, eax
mov word [ebx + ecx*2 + 2], ax
mov ebx, dword [ebp - 0xa1c]
jmp 0x419389
movups xmm0, xmmword [0x45d97c]
mov ax, word [0x45d98c]
mov word [ebp - 0xa08], ax
movups xmmword [ebp - 0xa18], xmm0
push 0x58
lea eax, [ebp - 0xa78]
push 0
push eax
call fcn.0042c5c0
mov eax, dword [ebx + 0x98]
add esp, 0xc
mov dword [ebp - 0xa74], eax
lea eax, [ebp - 0xa18]
mov dword [ebp - 0xa78], 0x58
mov dword [ebp - 0xa6c], eax
mov dword [ebp - 0xa60], 1
cmp word [edi], 0
je 0x4193d9
lea eax, [edi + 2]
mov dword [ebp - 0xa3c], eax
jmp 0x4193e3
mov dword [ebp - 0xa3c], 0
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x218]
mov dword [ebp - 0xa5c], eax
mov eax, dword [ebx + 0x9c]
mov dword [ebp - 0xa58], 0x208
mov dword [ebp - 0xa44], 0x880e
test eax, eax
je 0x419421
push 0
push 3
push 0x8000
push dword [eax + 4]
call edi
lea eax, [ebp - 0xa78]
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
mov eax, dword [ebp - 0xa1c]
setne bl
mov eax, dword [eax + 0x9c]
test eax, eax
je 0x419451
push 0
push 0
push 0x8000
push dword [eax + 4]
call edi
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
test bl, bl
je 0x41949e
cmp word [ebp - 0x218], ax
jne 0x419475
xor ecx, ecx
jmp 0x41948f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419480
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.0040ad40
mov eax, dword [ebp + 0x20]
cmp eax, 8
jb 0x4194b3
inc eax
lea ecx, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call fcn.0040f960
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00429d08
mov esp, ebp
pop ebp
ret 0x20