Function at 0x40d474
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
mov esi, eax
lea eax, [ebp - 0x1c7]
push ebx
push eax
mov byte [ebp - 0x1c8], bl
call fcn.00449020
add esp, 0xc
push str.screenshots
mov eax, 0x104
lea edi, [ebp - 0x1c8]
call fcn.0040f9bc
push ebx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x138], ebx
jne 0x40d4d5
cmp dword [ebp - 4], ebx
je 0x40d7bb
mov eax, dword [ebp - 4]
sub eax, ebx
je 0x40d4f8
dec eax
je 0x40d4f3
dec eax
je 0x40d4ec
dec eax
jne 0x40d503
push ebx
push 0x64
push 0x64
jmp 0x40d4fc
push ebx
push 0x64
push 0x32
jmp 0x40d4fc
push ebx
push ebx
push ebx
jmp 0x40d4fc
push ebx
push ebx
push 0xffffffffffffffff
mov ebx, esi
call fcn.0040c047
push 1
xor ebx, ebx
call fcn.0040be14
xor eax, eax
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 0xf4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x28]
neg eax
push eax
mov eax, dword [ebp - 0x2c]
neg eax
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
cmp dword [esi + 0xd8], ebx
mov dword [ebp - 0x18], ebx
jle 0x40d7b9
inc dword [ebp - 0x10]
push 1
xor ebx, ebx
push ebx
push dword [esi + 0xf4]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [esi + 0xf4]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
push ebx
push ebx
call dword [eax + 0x30]
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
push ebx
push 1
call dword [eax + 0x30]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
jmp 0x40d5a3
lea eax, [ebp - 0xbc]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xbc]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push ebx
push ebx
push dword [esi + 0xf4]
lea eax, [ebp - 0xbc]
push eax
call edi
test eax, eax
jne 0x40d589
push dword [esi + 0xf4]
call dword [sym.imp.USER32.dll_GetWindowDC]
mov edi, eax
push 0x2c
lea eax, [ebp - 0xa0]
push ebx
push eax
mov dword [ebp - 0x30], edi
call fcn.00449020
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov dword [ebp - 0x98], eax
xor eax, eax
push 0x18
inc eax
mov word [ebp - 0x94], ax
pop eax
push ebx
push ebx
mov word [ebp - 0x92], ax
lea eax, [ebp - 0x48]
push eax
push ebx
lea eax, [ebp - 0xa0]
push eax
push edi
mov dword [ebp - 0xa0], 0x28
mov dword [ebp - 0x90], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push ebx
push ebx
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_BitBlt]
push 0xa
pop ecx
push ebx
xor eax, eax
lea edi, [ebp - 0x70]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.GDI32.dll_GetDIBits]
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x74], 0x2c
push dword [ebp - 8]
call edi
push dword [ebp - 0x60]
call fcn.0043ed38
pop ecx
push ebx
lea ecx, [ebp - 0x74]
push ecx
push eax
push dword [ebp - 0x6c]
mov dword [ebp - 0x34], eax
push ebx
push dword [ebp - 0xc]
push dword [ebp - 8]
call edi
mov ecx, dword [ebp - 0x60]
mov eax, 0x4d42
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x74]
lea eax, [ecx + eax + 0xe]
mov dword [ebp - 0x42], eax
xor eax, eax
push 0x103
mov word [ebp - 0x3e], ax
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x2cf]
push ebx
push eax
mov dword [ebp - 0x3a], 0x36
mov byte [ebp - 0x2d0], bl
call fcn.00449020
add esp, 0xc
mov eax, 0x459614
cmp dword [esi + 0x138], ebx
jne 0x40d6f1
mov eax, str.uninstall
push dword [ebp - 0x10]
push eax
mov eax, dword [esi + 0x134]
add eax, 0xf40
push eax
lea eax, [ebp - 0x1c8]
push eax
lea eax, [ebp - 0x2d0]
push str._s_S__s__d.bmp
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
lea eax, [ebp - 0x2d0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea ecx, [ebp - 0x1c]
push ecx
push 0xe
lea ecx, [ebp - 0x44]
push ecx
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], ebx
call edi
push ebx
lea eax, [ebp - 0x1c]
push eax
push 0x28
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x14]
call edi
push ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x60]
push dword [ebp - 0x34]
push dword [ebp - 0x14]
call edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x30]
push dword [esi + 0xf4]
call dword [sym.imp.USER32.dll_ReleaseDC]
push 1
mov eax, esi
call fcn.0040be76
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [esi + 0xd8]
jl 0x40d54c
xor ebx, ebx
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
jl 0x40d4c4
push 1
xor ebx, ebx
call fcn.0040be14
pop edi
pop esi
pop ebx
leave
ret