Function at 0x409823
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.00426af0
add esp, 0xc
push str.screenshots
lea edi, [ebp - 0x1c8]
call fcn.004074d9
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 + 0x110], ebx
jne 0x40987f
cmp dword [ebp - 4], ebx
je 0x409b5a
mov eax, dword [ebp - 4]
sub eax, ebx
je 0x40989f
dec eax
je 0x40989b
dec eax
je 0x409895
dec eax
jne 0x4098a9
push 0x64
push 0x64
jmp 0x4098a2
push 0x64
push 0x32
jmp 0x4098a2
push ebx
push ebx
jmp 0x4098a2
push ebx
push 0xffffffffffffffff
mov eax, esi
call fcn.00409322
push 1
xor ebx, ebx
call fcn.004091be
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 + 0xf0]
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 + 0xd4], ebx
mov dword [ebp - 0x18], ebx
jle 0x409b58
inc dword [ebp - 0x10]
push 1
xor ebx, ebx
push ebx
push dword [esi + 0xf0]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [esi + 0xf0]
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 0x409949
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 + 0xf0]
lea eax, [ebp - 0xbc]
push eax
call edi
test eax, eax
jne 0x40992f
push dword [esi + 0xf0]
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.00426af0
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x20]
push ebx
push ebx
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x48]
push eax
push ebx
lea eax, [ebp - 0xa0]
push eax
push edi
mov dword [ebp - 0xa0], 0x28
mov word [ebp - 0x94], 1
mov word [ebp - 0x92], 0x18
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.00420778
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 eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x60]
lea eax, [ecx + eax + 0xe]
mov word [ebp - 0x44], 0x4d42
mov dword [ebp - 0x42], eax
mov word [ebp - 0x3e], bx
mov word [ebp - 0x3c], bx
mov dword [ebp - 0x3a], 0x36
push 0x103
lea eax, [ebp - 0x2cf]
push ebx
push eax
mov byte [ebp - 0x2d0], bl
call fcn.00426af0
add esp, 0xc
cmp dword [esi + 0x110], ebx
mov eax, 0x431518
jne 0x409a90
mov eax, str.uninstall
push dword [ebp - 0x10]
push eax
mov eax, dword [esi + 0x10c]
add eax, 0xe18
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 + 0xf0]
call dword [sym.imp.USER32.dll_ReleaseDC]
push 1
mov eax, esi
call fcn.00409220
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [esi + 0xd4]
jl 0x4098f2
xor ebx, ebx
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
jl 0x40986e
push 1
xor ebx, ebx
call fcn.004091be
pop edi
pop esi
pop ebx
leave
ret