Function at 0x40a390
Capabilities:
Create process on windows
Delete file
Download url
Get common file path
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe74
mov eax, dword [0x43c040]
xor eax, esp
mov dword [esp + 0xe70], eax
push ebx
push esi
push edi
lea eax, [esp + 0x60]
mov esi, ecx
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x60]
push str.dlnowjpg
push eax
call ebx
lea eax, [esi + 0xa0]
push eax
lea eax, [esp + 0x64]
push eax
call ebx
mov edx, 0x104
lea eax, [esp + 0x60]
nop dword [eax + eax]
cmp word [eax], 0
je 0x40a400
add eax, 2
sub edx, 1
jne 0x40a3f0
jmp 0x40a41a
push ecx
mov eax, 0x104
sub eax, edx
push str..bin
push ecx
lea ecx, [esp + 0x6c]
lea ecx, [ecx + eax*2]
call fcn.00401190
cmp dword [esi + 0x1744], 0
je 0x40a88d
push 0x2c
call fcn.0041be18
mov dword [esp + 0x14], eax
add esp, 4
mov dword [eax], vtable.CBindStatusCallback.0
push eax
mov dword [eax + 4], 1
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 0
push 0
mov dword [esi + 0x94], eax
lea eax, [esp + 0x68]
push eax
push dword [esi + 0x1744]
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov dword [esi + 0x94], 0
test eax, eax
js 0x40a882
cmp dword [esi + 0xa374], 0
jne 0x40a882
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov edi, eax
test edi, edi
je 0x40a874
lea ecx, [edi + 4]
mov dword [edi], vtable.Gdiplus::Image.0
push ecx
lea eax, [esp + 0x64]
mov dword [ecx], 0
push eax
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromFile]
mov dword [edi + 8], eax
lea eax, [esp + 0x10]
push eax
push dword [edi + 4]
mov dword [esp + 0x18], 0
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x40a509
mov dword [edi + 8], eax
cmp dword [esp + 0x10], 0
mov ecx, edi
jne 0x40a7bb
mov eax, dword [edi]
push 1
call dword [eax]
push 0x104
lea eax, [esp + 0x474]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x470]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.bindwebp.exe
lea eax, [esp + 0x474]
push eax
call ebx
push ecx
lea eax, [esp + 0x64]
mov edx, 0x104
push eax
push ecx
lea ecx, [esp + 0x274]
call fcn.00401190
push str..bmp
lea eax, [esp + 0x26c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
push ecx
push str._bmp
push ecx
mov edi, 0x400
lea ecx, [esp + 0x684]
mov edx, edi
call fcn.00401190
mov edx, edi
lea eax, [esp + 0x678]
nop dword [eax]
cmp word [eax], 0
je 0x40a5b0
add eax, 2
sub edx, 1
jne 0x40a5a0
jmp 0x40a5ca
push ecx
lea ecx, [esp + 0x64]
mov eax, edi
push ecx
sub eax, edx
push ecx
lea ecx, [esp + 0x684]
lea ecx, [ecx + eax*2]
call fcn.00401190
mov edx, edi
lea eax, [esp + 0x678]
cmp word [eax], 0
je 0x40a5e3
add eax, 2
sub edx, 1
jne 0x40a5d3
jmp 0x40a5fd
push ecx
mov eax, edi
sub eax, edx
push 0x434e4c
push ecx
lea ecx, [esp + 0x684]
lea ecx, [ecx + eax*2]
call fcn.00401190
mov edx, edi
lea eax, [esp + 0x678]
cmp word [eax], 0
je 0x40a616
add eax, 2
sub edx, 1
jne 0x40a606
jmp 0x40a631
push ecx
lea eax, [esp + 0x26c]
sub edi, edx
push eax
push ecx
lea ecx, [esp + 0x684]
lea ecx, [ecx + edi*2]
call fcn.00401190
lea eax, [esp + 0x470]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], eax
xorps xmm0, xmm0
lea eax, [esp + 0x678]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x14]
push eax
movlpd qword [esp + 0x38], xmm0
movlpd qword [esp + 0x40], xmm0
movlpd qword [esp + 0x48], xmm0
mov dword [esp + 0x50], 0
mov dword [esp + 0x18], 0x3c
mov dword [esp + 0x1c], 0x40
mov dword [esp + 0x24], str.open
mov dword [esp + 0x34], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40a6b7
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x40a6b7
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov edi, eax
test edi, edi
je 0x40a7a8
lea ecx, [edi + 4]
mov dword [edi], vtable.Gdiplus::Image.0
push ecx
lea eax, [esp + 0x26c]
mov dword [ecx], 0
push eax
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromFile]
mov dword [edi + 8], eax
mov ecx, edi
push dword [esi + 0x80]
mov edx, dword [esi + 0x7c]
call fcn.00409bb0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40a7a0
push ecx
lea eax, [esp + 0x26c]
mov edx, 0x104
push eax
push ecx
lea ecx, [esp + 0x47c]
call fcn.00401190
push str..jpg
lea eax, [esp + 0x474]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
movups xmm0, xmmword [0x42e750]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x64
lea edx, [esp + 0x50]
mov dword [esp + 0x14], 1
mov dword [esp + 0x28], 1
movups xmmword [esp + 0x18], xmm0
mov dword [esp + 0x2c], 4
mov dword [esp + 0x30], eax
call fcn.0040df60
test eax, eax
je 0x40a798
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x478]
push eax
push dword [ebx + 4]
call dword [sym.imp.gdiplus.dll_GdipSaveImageToFile]
test eax, eax
je 0x40a798
mov dword [ebx + 8], eax
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
lea eax, [esp + 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40a874
push dword [esi + 0x80]
mov edx, dword [esi + 0x7c]
call fcn.00409bb0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40a86c
push ecx
lea eax, [esp + 0x64]
mov edx, 0x104
push eax
push ecx
lea ecx, [esp + 0x274]
call fcn.00401190
push str..jpg
lea eax, [esp + 0x26c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
movups xmm0, xmmword [0x42e750]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x64
lea edx, [esp + 0x50]
mov dword [esp + 0x14], 1
mov dword [esp + 0x28], 1
movups xmmword [esp + 0x18], xmm0
mov dword [esp + 0x2c], 4
mov dword [esp + 0x30], eax
call fcn.0040df60
test eax, eax
je 0x40a864
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x270]
push eax
push dword [ebx + 4]
call dword [sym.imp.gdiplus.dll_GdipSaveImageToFile]
test eax, eax
je 0x40a864
mov dword [ebx + 8], eax
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
push dword [esi + 0x1754]
push ecx
mov ecx, esi
call fcn.0040a0a0
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xe7c]
pop edi
mov dword [esi + 0x28], 0
pop esi
pop ebx
xor ecx, esp
call fcn.0041bbdc
mov esp, ebp
pop ebp
ret