Function at 0x409d10
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x44abd6
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x45c020]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push ebp
push edi
mov eax, dword [0x45c020]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x270]
push ecx
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.0040ae40
mov edi, dword [esi + 0xc]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov ebx, eax
test ebx, ebx
je 0x409e0a
lea edx, [esp + 0x10]
push edx
push 0
push edi
mov dword [ebx], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x1c], 0
call sub.gdiplus.dll_GdipCreateBitmapFromHBITMAP
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x10]
mov dword [ebx + 4], eax
mov eax, dword [esi + 0x1c]
mov edi, dword [esi + 0x24]
mov ebp, dword [esi + 0x20]
mov dword [esp + 0x10], eax
sub edi, eax
mov eax, dword [esi + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x18], eax
sub ebp, eax
mov eax, dword [ebx + 4]
push edx
push eax
call sub.gdiplus.dll_GdipGetImagePixelFormat
test eax, eax
je 0x409dc6
mov dword [ebx + 8], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push edi
push ebp
push ecx
push edx
mov edx, dword [esp + 0x30]
mov eax, ebx
call fcn.004062b0
mov ebp, eax
xor edi, edi
cmp ebp, edi
jne 0x409e22
mov eax, dword [ebx]
mov edx, dword [eax]
mov edi, 1
push edi
mov ecx, ebx
call edx
mov eax, dword [esi + 4]
push edi
push 2
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x409fe7
mov ecx, dword [esi + 4]
push 1
push 2
push 0x111
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x409fe7
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx - 0xc]
cmp eax, edi
jne 0x409ed9
push 0x206
lea eax, [esp + 0x5a]
push edi
push eax
mov word [esp + 0x60], di
call fcn.00446cf4
add esp, 0xc
lea ecx, [esp + 0x54]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [0x45f304]
mov eax, dword [edx + 0xc]
mov ecx, 0x45f304
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x268], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.fastpic_capture_d.jpg
lea edi, [esp + 0x18]
call fcn.0040dd60
mov ecx, dword [esp + 0x18]
add esp, 8
push ecx
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x54]
call fcn.0040c590
mov dword [esp + 0x268], 0xffffffff
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 0x409ed9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx]
lea edx, [esp + 0x1c]
push edx
call fcn.004297e0
add esp, 4
mov edi, 1
mov dword [esp + 0x268], edi
mov eax, dword [esp + 0x1c]
push edi
push eax
call fcn.0042a740
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0042a3c0
add esp, 0xc
lea edx, [esp + 0x44]
push edx
push str.image_jpeg
call fcn.004095e0
add esp, 8
test eax, eax
je 0x409f8d
mov ecx, dword [0x44e504]
mov eax, dword [0x44e500]
mov edx, dword [0x44e508]
mov dword [esp + 0x28], eax
mov eax, dword [0x44e50c]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [edx]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x48]
push edx
push eax
mov eax, dword [ebp + 4]
push eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x4c], 4
mov dword [esp + 0x48], edi
mov dword [esp + 0x28], 0x64
call sub.gdiplus.dll_GdipSaveImageToFile
test eax, eax
je 0x409f8d
mov dword [ebp + 8], eax
mov edx, dword [ebp]
mov eax, dword [edx]
push edi
mov ecx, ebp
call eax
mov edx, dword [ebx]
mov eax, dword [edx]
push edi
mov ecx, ebx
call eax
cmp dword [esp + 0x274], 0
je 0x409fbc
mov ecx, dword [esi + 4]
push edi
push 2
push 0x111
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [esp + 0x268], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409fe7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.0044664e
add esp, 0x25c
ret 8