Function at 0x45cd20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7c19
mov eax, dword fs:[0]
push eax
sub esp, 0x134
push ebx
push esi
push edi
mov eax, dword [0x519058]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00469b00
call section..text
mov ebx, eax
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0x4dfbf0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0045f630
xor esi, esi
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
mov byte [ebp + 0xb], 0
call fcn.0045f740
add esp, 0xc
sub eax, esi
je 0x45ce54
sub eax, 1
je 0x45ce08
sub eax, 1
jne 0x45cee2
lea eax, [ebp + 0xc]
push eax
call fcn.00490470
add esp, 4
mov esi, dword [eax]
mov byte [ebp - 4], 8
test esi, esi
je 0x45cde1
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
add ecx, 4
add ecx, esi
mov eax, dword [ecx]
call dword [eax]
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 9
test eax, eax
je 0x45cede
mov ecx, dword [eax + 4]
add eax, 4
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x45cede
lea eax, [ebp + 0xc]
push eax
call fcn.00456fc0
add esp, 4
mov esi, dword [eax]
mov byte [ebp - 4], 6
test esi, esi
je 0x45ce2d
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
add ecx, 4
add ecx, esi
mov eax, dword [ecx]
call dword [eax]
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 7
test eax, eax
je 0x45cede
mov ecx, dword [eax + 4]
add eax, 4
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x45cede
lea eax, [ebp + 0xb]
mov byte [ebp + 0xb], 0
push eax
push 0x51b3e0
call fcn.0044f4a0
mov esi, dword [ebp + 0xc]
add esp, 8
mov ecx, dword [section..data]
push esi
call fcn.0045c8f0
push esi
push str.command_line:
push 0x51d048
call fcn.004511f0
add esp, 8
push eax
call fcn.00457890
push eax
call fcn.004518f0
lea eax, [ebp + 8]
push eax
call fcn.0044fae0
add esp, 0x10
mov esi, dword [eax]
mov byte [ebp - 4], 4
test esi, esi
je 0x45cebc
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
add ecx, 4
add ecx, esi
mov eax, dword [ecx]
call dword [eax]
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 5
test eax, eax
je 0x45ceda
mov ecx, dword [eax + 4]
add eax, 4
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp + 0xb], 1
mov byte [ebp - 4], 3
push ebx
push ecx
mov eax, esp
mov dword [eax], esi
test esi, esi
je 0x45cefb
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
add ecx, 4
add ecx, esi
mov eax, dword [ecx]
call dword [eax]
lea eax, [ebp - 0x20]
push eax
call fcn.00469b10
mov edi, eax
add esp, 0xc
test edi, edi
jns 0x45d123
lea ecx, [ebp - 0x30]
call fcn.0045e010
push 0xec
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x140], 0x4dfbfc
push 0
push eax
call fcn.004a19e0
add esp, 0xc
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x13c], 0xec
mov dword [ebp - 0x78], 0x2382
mov byte [ebp - 4], 0xb
push ebx
push ecx
mov eax, esp
mov dword [eax], esi
test esi, esi
je 0x45cf6e
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
add ecx, 4
add ecx, esi
mov eax, dword [ecx]
call dword [eax]
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00469cf0
add esp, 0x10
cmp byte [ebp + 0xb], 0
je 0x45d0a4
nop dword [eax + eax]
lea eax, [ebp + 0xb]
mov byte [ebp + 0xb], 0
push eax
push 0x51b3e0
call fcn.0044f4a0
mov eax, dword [section..data]
mov dword [ebp + 0xc], eax
lea edi, [eax + 0xb8]
push edi
call fcn.0049c938
add esp, 0xc
test eax, eax
je 0x45cfc6
push eax
call fcn.0049ca64
add esp, 4
mov eax, dword [ebp + 0xc]
push edi
mov al, byte [eax + 1]
mov byte [ebp + 0xf], al
call fcn.0049c95d
add esp, 4
test eax, eax
je 0x45cfe5
push eax
call fcn.0049ca64
add esp, 4
cmp byte [ebp + 0xf], 0
jne 0x45d0a9
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
mov eax, dword [ebp - 0x48]
cmp eax, 0x104
je 0x45d00e
cmp eax, 0x10
je 0x45cf90
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
call fcn.00469af0
lea eax, [ebp + 0xb]
mov byte [ebp + 0xb], 0
push eax
push 0x51b3e0
call fcn.0044f4a0
mov eax, dword [section..data]
mov dword [ebp + 0xc], eax
lea edi, [eax + 0xb8]
push edi
call fcn.0049c938
add esp, 0xc
test eax, eax
je 0x45d05d
push eax
call fcn.0049ca64
add esp, 4
mov eax, dword [ebp + 0xc]
push edi
mov eax, dword [eax + 0xa0]
mov dword [ebp + 0xc], eax
call fcn.0049c95d
add esp, 4
test eax, eax
je 0x45d07f
push eax
call fcn.0049ca64
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edi, eax
mov ecx, edx
mov eax, dword [ebp + 0xc]
cdq
cmp ecx, edx
ja 0x45d0a9
jb 0x45d097
cmp edi, eax
ja 0x45d0a9
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x45cf90
call fcn.00469e90
lea eax, [ebp + 0xb]
mov byte [ebp + 0xb], 0
push eax
push 0x51b3e0
call fcn.0044f4a0
mov eax, dword [section..data]
add esp, 8
mov edx, dword [eax + 0x100]
cmp edx, 0xffffffff
je 0x45d0f6
cmp dword [0x51b5c4], 0x10
mov ecx, 0x51b5b0
push 0
cmovae ecx, dword [0x51b5b0]
add eax, 0x104
push eax
push 0xc8
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
call fcn.00469ea0
xor edi, edi
mov dword [ebp - 0x140], 0x4dfbfc
cmp dword [ebp - 0x50], edi
jne 0x45d11b
lea eax, [ebp - 0x13c]
push eax
call fcn.0045b0d0
add esp, 4
lea ecx, [ebp - 0x30]
call fcn.0045e070
mov byte [ebp - 4], 0xc
test esi, esi
je 0x45d13b
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
add ecx, 4
add ecx, esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0xd
test eax, eax
je 0x45d156
mov ecx, dword [eax + 4]
add eax, 4
mov ecx, dword [ecx + 4]
add ecx, eax
mov edx, dword [ecx]
call dword [edx + 4]
push ebx
mov dword [ebp - 0x20], 0x4dfbf0
call fcn.00440dc0
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8