Function at 0x4037b8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x4c4
mov eax, dword [0x44ed68]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], str.DISPLAY
call eax
sub esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4037fe
mov eax, 0
jmp 0x403cd2
mov edx, dword [0x44ed74]
mov dword [esp + 4], 8
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call edx
sub esp, 8
mov dword [ebp - 0x14], eax
mov edx, dword [0x44ed74]
mov dword [esp + 4], 0xa
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call edx
sub esp, 8
mov dword [ebp - 0x18], eax
mov edx, dword [0x44ed74]
mov dword [esp + 4], 0xc
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call edx
sub esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 8
ja 0x40387d
mov edx, dword [0x44ed74]
mov dword [esp + 4], 0x18
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call edx
sub esp, 8
mov dword [ebp - 0xc], eax
mov dword [ebp - 0xc], 0x100
jmp 0x403884
mov dword [ebp - 0xc], 0
mov edx, dword [0x44ed70]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call edx
sub esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4038b9
mov edx, dword [0x44ed84]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call edx
sub esp, 4
mov eax, 0
jmp 0x403cd2
mov dword [ebp - 0x58], 0x28
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x50], eax
mov word [ebp - 0x4c], 1
mov eax, dword [ebp - 0x1c]
mov word [ebp - 0x4a], ax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov edx, dword [0x44ed6c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x5c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
lea eax, [ebp - 0x58]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call edx
sub esp, 0x18
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40396d
mov edx, dword [0x44ed84]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call edx
sub esp, 4
mov edx, dword [0x44ed84]
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call edx
sub esp, 4
mov eax, 0
jmp 0x403cd2
mov edx, dword [0x44ed7c]
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call edx
sub esp, 8
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x403994
cmp dword [ebp - 0x28], 0xffffffff
jne 0x4039c0
mov edx, dword [0x44ed84]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call edx
sub esp, 4
mov edx, dword [0x44ed84]
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call edx
sub esp, 4
mov eax, 0
jmp 0x403cd2
mov ebx, dword [0x44ed80]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x20], 0xcc0020
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov ecx, dword [ebp - 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call ebx
sub esp, 0x24
test eax, eax
sete al
test al, al
je 0x403a43
mov edx, dword [0x44ed84]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call edx
sub esp, 4
mov edx, dword [0x44ed84]
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call edx
sub esp, 4
mov eax, 0
jmp 0x403cd2
cmp dword [ebp - 0xc], 0
je 0x403a76
mov edx, dword [0x44ed78]
lea eax, [ebp - 0x460]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call edx
sub esp, 0x10
mov dword [ebp - 0xc], eax
mov word [ebp - 0x46e], 0x4d42
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x1c]
shr eax, 3
mov edx, eax
mov eax, dword [ebp - 0xc]
shl eax, 2
add eax, edx
add eax, 0x36
mov dword [ebp - 0x46c], eax
mov word [ebp - 0x468], 0
mov word [ebp - 0x466], 0
mov eax, dword [ebp - 0xc]
shl eax, 2
add eax, 0x36
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x498], 0x28
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x494], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x490], eax
mov word [ebp - 0x48c], 1
mov eax, dword [ebp - 0x1c]
mov word [ebp - 0x48a], ax
mov dword [ebp - 0x488], 0
mov dword [ebp - 0x484], 0
mov dword [ebp - 0x480], 0
mov dword [ebp - 0x47c], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x478], eax
mov dword [ebp - 0x474], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
call eax
sub esp, 0x1c
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x403bb1
mov edx, dword [0x44ed88]
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call edx
sub esp, 4
mov edx, dword [0x44ed84]
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call edx
sub esp, 4
mov edx, dword [0x44ed84]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call edx
sub esp, 4
mov eax, 0
jmp 0x403cd2
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x60]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xe
lea eax, [ebp - 0x46e]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x60]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x28
lea eax, [ebp - 0x498]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
cmp dword [ebp - 0xc], 0
je 0x403c50
mov eax, dword [ebp - 0xc]
lea edx, [eax*4]
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x60]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
lea eax, [ebp - 0x460]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x1c]
shr eax, 3
mov ecx, eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x60]
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov edx, dword [0x44ed88]
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call edx
sub esp, 4
mov edx, dword [0x44ed84]
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call edx
sub esp, 4
mov edx, dword [0x44ed84]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call edx
sub esp, 4
mov eax, 1
mov ebx, dword [ebp - 4]
leave
ret