Function at 0x40a010
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44ab8a
mov eax, dword fs:[0]
push eax
sub esp, 0x600
mov eax, dword [0x45c020]
xor eax, esp
mov dword [esp + 0x5f8], eax
push ebx
push esi
push edi
mov eax, dword [0x45c020]
xor eax, esp
push eax
lea eax, [esp + 0x610]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0xc4], 6
mov dword [esp + 0x20], ebx
je 0x40a6ee
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40a09f
lea eax, [esp + 0x10]
push eax
mov ecx, str.save
call fcn.0040c420
lea ecx, [esp + 0x10]
push ecx
lea eax, [ebx + 0x150]
call fcn.00443c30
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40a0d7
cmp eax, 1
jne 0x40a0e3
lea ecx, [esp + 0x10]
push ecx
mov ecx, str.save2
call fcn.0040c420
lea edx, [esp + 0x10]
push edx
lea eax, [ebx + 0x150]
call fcn.00443c30
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a0e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, ebx
call fcn.0040abb0
mov edi, dword [ebx + 0xcc]
test edi, edi
je 0x40a0fb
push 1
call fcn.004214b0
push 0x54
lea ecx, [esp + 0x34]
push 0
push ecx
call fcn.00446cf4
mov edx, dword [ebx + 4]
add esp, 0xc
push 0x44f9b4
lea ecx, [esp + 0xa4]
mov dword [esp + 0x30], 0x58
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], str.PNG_.png_
mov dword [esp + 0x6c], 0x44f9b0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea esi, [esp + 0x84]
mov dword [esp + 0x618], 0
call fcn.00409c70
push eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0x61c], 1
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, esi
mov byte [esp + 0x618], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [esp + 0xb8], 0x10
mov eax, dword [esp + 0xa4]
jae 0x40a192
lea eax, [esp + 0xa4]
push eax
lea eax, [esp + 0x400]
push 0x208
push eax
call dword [sym.imp.MSVCR80.dll_strcpy_s]
add esp, 0xc
push 0x103
xor edi, edi
lea ecx, [esp + 0x2f9]
push edi
push ecx
mov byte [esp + 0x300], 0
call fcn.00446cf4
add esp, 0xc
push edi
push 0x10
lea edx, [esp + 0x2fc]
push edx
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 0x2f4]
mov dword [esp + 0x58], ecx
mov ecx, dword [ebx + 0xcc]
lea eax, [esp + 0x3fc]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0x104
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x60], 2
mov dword [esp + 0x5c], 0x44f9bc
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [eax]
mov eax, dword [ecx + 4]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push edi
push eax
call esi
mov edx, dword [ebx + 0xcc]
mov ecx, dword [edx + 0xb8]
cmp ecx, edi
je 0x40a24d
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov eax, dword [eax]
mov eax, dword [eax + 4]
push edi
push eax
call esi
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.comdlg32.dll_GetSaveFileNameA]
test eax, eax
je 0x40a69e
mov edx, dword [0x44e500]
mov ecx, dword [0x44e504]
mov eax, 1
mov dword [esp + 0xc0], edx
mov edx, dword [0x44e508]
push 0x206
mov dword [0x45f97c], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xd4], eax
mov dword [esp + 0xc8], ecx
mov ecx, dword [0x44e50c]
mov dword [esp + 0xcc], edx
lea eax, [esp + 0xf2]
lea edx, [esp + 0x28]
push edi
push eax
mov dword [esp + 0xd8], ecx
mov dword [esp + 0xe0], 4
mov dword [esp + 0x30], 0x64
mov dword [esp + 0xe4], edx
mov word [esp + 0xf8], di
call fcn.00446cf4
mov edx, dword [esp + 0x54]
add esp, 0xc
push 0x104
lea ecx, [esp + 0xf0]
push ecx
push 0xffffffffffffffff
push edx
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebx + 8]
push eax
mov ecx, ebx
call fcn.0040ae40
mov ecx, dword [ebx + 0xc]
push 0x10
mov dword [esp + 0x18], ecx
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, edi
je 0x40a349
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push edi
push eax
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x1c], edi
call sub.gdiplus.dll_GdipCreateBitmapFromHBITMAP
mov ecx, dword [esp + 0x10]
mov dword [esi + 8], eax
mov dword [esi + 4], ecx
jmp 0x40a34b
xor esi, esi
mov eax, dword [ebx + 0x1c]
mov edi, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x18]
sub edi, eax
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x20]
sub eax, ecx
test esi, esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
jne 0x40a383
mov edx, dword [ebx + 4]
push 1
push 2
push 0x111
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40a6d6
mov ecx, dword [esi + 4]
lea eax, [esp + 0x1c]
push eax
push ecx
call sub.gdiplus.dll_GdipGetImagePixelFormat
test eax, eax
je 0x40a398
mov dword [esi + 8], eax
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push edi
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
mov eax, esi
call fcn.004062b0
test eax, eax
mov dword [esp + 0x10], eax
jne 0x40a3dd
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov ecx, dword [ebx + 4]
push 1
push 2
push 0x111
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40a6d6
call fcn.00406140
sub eax, 0xff
shr eax, 1
mov dword [esp + 0x18], eax
call fcn.00406170
sub eax, 0x7d
shr eax, 1
lea edx, [esp + 0xec]
mov edi, 0x460468
mov dword [esp + 0x28], eax
call fcn.0040c590
lea ecx, [esp + 0x84]
mov dword [esp + 0x14], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea edx, [esp + 0xec]
mov byte [esp + 0x618], 2
mov edi, dword [sym.imp.MSVCR80.dll_wcsstr]
push str..png
push edx
call edi
add esp, 8
test eax, eax
jbe 0x40a44f
push str.image_png
jmp 0x40a4f5
lea eax, [esp + 0xec]
push str..jpg
push eax
call edi
add esp, 8
test eax, eax
ja 0x40a4f0
lea ecx, [esp + 0xec]
push str..jpeg
push ecx
call edi
add esp, 8
test eax, eax
ja 0x40a4f0
lea edx, [esp + 0xec]
push str..bmp
push edx
call edi
add esp, 8
test eax, eax
jbe 0x40a49c
push str.image_bmp
jmp 0x40a4f5
lea eax, [esp + 0xec]
push str..gif
push eax
call edi
add esp, 8
test eax, eax
jbe 0x40a4b9
push str.image_gif
jmp 0x40a4f5
lea ecx, [esp + 0xec]
push str..pdf
push ecx
call edi
add esp, 8
test eax, eax
jbe 0x40a502
push str.image_jpeg
lea ecx, [esp + 0x88]
mov dword [esp + 0x18], 1
call dword [0x44d270]
call fcn.0040c620
jmp 0x40a502
push str.image_jpeg
lea ecx, [esp + 0x88]
call dword [0x44d270]
cmp dword [esp + 0x9c], 8
mov eax, dword [esp + 0x88]
jae 0x40a51a
lea eax, [esp + 0x88]
lea edx, [esp + 0xdc]
push edx
push eax
call fcn.004095e0
mov edi, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x40a55a
mov edx, dword [0x460468]
lea eax, [esp + 0xbc]
push eax
mov eax, dword [edi + 4]
lea ecx, [esp + 0xe0]
push ecx
push edx
push eax
call sub.gdiplus.dll_GdipSaveImageToFile
test eax, eax
je 0x40a55a
mov dword [edi + 8], eax
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
cmp dword [ebx + 0xc4], 6
jne 0x40a5ae
mov ecx, dword [ebx + 4]
push 1
push 2
push 0x111
push ecx
mov dword [0x45f8a0], 1
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [esp + 0x84]
mov byte [esp + 0x618], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
jmp 0x40a6d6
cmp dword [esp + 0x14], 0
je 0x40a650
lea esi, [esp + 0x10]
call fcn.0040c3e0
mov byte [esp + 0x618], 3
mov edx, dword [0x460468]
push edx
push str._apptype:1__brosersubtype:2__sourcefrom:25__path:__s_
mov edi, esi
call fcn.0040dd60
xor edi, edi
lea ebx, [esp + 0x20]
call fcn.004298f0
push eax
lea eax, [esp + 0x28]
push eax
mov ebx, str.fastpic.exe
mov byte [esp + 0x628], 4
call fcn.0040c910
mov ecx, dword [esp + 0x20]
mov eax, dword [eax]
add esp, 0x10
push 5
push edi
push ecx
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esp + 0x1c]
call fcn.0040c560
lea eax, [esp + 0x18]
call fcn.0040c560
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 4]
push 1
push 2
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, esi
call fcn.0040c560
mov ebx, dword [esp + 0x20]
jmp 0x40a681
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
sub esp, 8
mov eax, esp
mov dword [esp + 0x24], esp
mov dword [eax], ecx
mov dword [eax + 4], edx
call fcn.0041e790
mov eax, dword [ebx + 4]
add esp, 8
push 0
push 2
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [esp + 0x84]
mov byte [esp + 0x618], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
xor edi, edi
mov ecx, dword [ebx + 0xcc]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [eax]
mov eax, dword [ecx + 4]
push 1
push eax
call esi
mov edx, dword [ebx + 0xcc]
mov ecx, dword [edx + 0xb8]
cmp ecx, edi
je 0x40a6d6
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov eax, dword [eax]
mov eax, dword [eax + 4]
push 1
push eax
call esi
lea ecx, [esp + 0xa0]
mov dword [esp + 0x618], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x610]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5f8]
xor ecx, esp
call fcn.0044664e
mov esp, ebp
pop ebp
ret 4