Function at 0x4277d0
Capabilities:
Write file on windows

Disassembly:
push 0x908
mov eax, 0x454cc5
call fcn.00433180
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x8f4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x8f8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x8e4], eax
xor eax, eax
mov dword [ebp - 0x860], 7
mov dword [ebp - 0x864], ebx
mov word [ebp - 0x874], ax
lea eax, [ebp - 0x874]
mov dword [ebp - 4], ebx
push eax
push 0x404b68
push 0x2a
mov dword [ebp - 0x8d8], ebx
call fcn.00430f40
add esp, 0xc
test al, al
jne 0x42784f
push ebx
xor ebx, ebx
lea ecx, [ebp - 0x874]
inc ebx
push ebx
call fcn.00411703
mov al, bl
jmp 0x427cbb
cmp dword [ebp - 0x860], 8
mov eax, dword [ebp - 0x874]
jae 0x427864
lea eax, [ebp - 0x874]
push 0xa
push ebx
push eax
call fcn.00439030
mov edi, eax
add esp, 0xc
test edi, edi
je 0x427838
mov esi, 0x800
lea eax, [ebp - 0x810]
push esi
push ebx
push eax
call fcn.00434c90
add esp, 0xc
lea eax, [ebp - 0x810]
mov byte [eax], bl
inc eax
sub esi, 1
jne 0x427892
mov esi, ebx
xor ebx, ebx
inc ebx
mov dword [ebp - 0x8e0], esi
test edi, edi
jle 0x427c95
and dword [ebp - 0x830], 0
xor eax, eax
mov dword [ebp - 0x82c], 7
mov word [ebp - 0x840], ax
push 0x404b74
lea ecx, [ebp - 0x88c]
mov byte [ebp - 4], bl
call fcn.00410573
push 0xa
push 0x400
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 2
push eax
push esi
call fcn.0043cb46
add esp, 0x10
test eax, eax
jne 0x427c66
lea eax, [ebp - 0x810]
push eax
call fcn.0041193d
pop ecx
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x88c]
call fcn.00414564
cmp dword [ebp - 0x878], 8
mov eax, dword [ebp - 0x88c]
jae 0x427932
lea eax, [ebp - 0x88c]
lea ecx, [ebp - 0x840]
push ecx
push eax
push 0x2a
call fcn.00430f40
add esp, 0xc
test al, al
je 0x427c66
push 0x404b84
lea ecx, [ebp - 0x85c]
call fcn.00410573
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 3
push eax
call fcn.0041193d
pop ecx
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x85c]
call fcn.00414564
and dword [ebp - 0x8d8], 0
cmp dword [ebp - 0x848], 8
mov eax, dword [ebp - 0x85c]
jae 0x42799c
lea eax, [ebp - 0x85c]
lea ecx, [ebp - 0x8d8]
push ecx
push 0
push eax
push 0x2a
push dword [0x45bc30]
call fcn.00430150
add esp, 0x14
cmp eax, 0xea
jne 0x427c58
cmp dword [ebp - 0x8d8], 0
je 0x427c58
xor eax, eax
lea ecx, [ebp - 0x8f0]
mov byte [ebp - 0x8d9], al
mov dword [ebp - 0x8f0], eax
mov dword [ebp - 0x8ec], eax
mov dword [ebp - 0x8e8], eax
lea eax, [ebp - 0x8d9]
push eax
push dword [ebp - 0x8d8]
call fcn.0042a4ab
cmp dword [ebp - 0x848], 8
mov eax, dword [ebp - 0x85c]
mov byte [ebp - 4], 4
jae 0x427a19
lea eax, [ebp - 0x85c]
lea ecx, [ebp - 0x8d8]
push ecx
push dword [ebp - 0x8f0]
push eax
push 0x2a
push dword [0x45bc30]
call fcn.00430150
add esp, 0x14
xor edx, edx
xor eax, eax
mov dword [ebp - 0x818], edx
mov word [ebp - 0x828], ax
push 7
pop esi
mov dword [ebp - 0x814], esi
cmp dword [ebp - 0x82c], 8
mov ecx, dword [ebp - 0x840]
mov byte [ebp - 4], 5
jae 0x427a6a
lea ecx, [ebp - 0x840]
mov eax, dword [ebp - 0x8f4]
cmp dword [eax + 0x14], 8
jb 0x427a78
mov eax, dword [eax]
push edx
push ecx
push eax
push edx
lea eax, [ebp - 0x828]
push eax
call fcn.00430fd6
xor ecx, ecx
mov dword [ebp - 0x8c0], esi
xor eax, eax
mov dword [ebp - 0x8c4], ecx
add esp, 0x14
mov word [ebp - 0x8d4], ax
mov dword [ebp - 0x8a8], esi
mov dword [ebp - 0x8ac], ecx
mov word [ebp - 0x8bc], ax
mov dword [ebp - 0x890], esi
mov dword [ebp - 0x894], ecx
mov word [ebp - 0x8a4], ax
cmp dword [ebp - 0x814], 8
mov eax, dword [ebp - 0x828]
mov byte [ebp - 4], 8
jae 0x427ae1
lea eax, [ebp - 0x828]
push ecx
push ecx
lea ecx, [ebp - 0x8bc]
push ecx
lea ecx, [ebp - 0x8d4]
push ecx
push eax
call fcn.0043168b
mov ecx, dword [ebp - 0x8bc]
add esp, 0x14
cmp dword [ebp - 0x8a8], 8
jae 0x427b0f
lea ecx, [ebp - 0x8bc]
cmp dword [ebp - 0x8c0], 8
mov eax, dword [ebp - 0x8d4]
jae 0x427b24
lea eax, [ebp - 0x8d4]
push 0
push 0
push ecx
push eax
lea eax, [ebp - 0x8a4]
push eax
call fcn.00430fd6
mov eax, dword [ebp - 0x8a4]
add esp, 0x14
cmp dword [ebp - 0x890], 8
jae 0x427b4e
lea eax, [ebp - 0x8a4]
push eax
call fcn.0042f405
cmp dword [ebp - 0x814], 8
mov eax, dword [ebp - 0x828]
pop ecx
jae 0x427b6a
lea eax, [ebp - 0x828]
xor ecx, ecx
push ecx
push 0x80
push 2
push ecx
push ecx
push 0x40000000
push eax
call dword [0x45aef4]
mov esi, eax
cmp esi, 0xffffffff
je 0x427bb4
and dword [ebp - 0x844], 0
lea eax, [ebp - 0x844]
push 0
push eax
push dword [ebp - 0x8d8]
push dword [ebp - 0x8f0]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x427cc1
mov ecx, dword [ebp - 0x8f8]
lea eax, [ebp - 0x840]
push eax
call fcn.0041dfc7
mov ecx, dword [ebp - 0x8e4]
lea eax, [ebp - 0x828]
push eax
call fcn.0041dfc7
cmp esi, 0xffffffff
je 0x427be4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
lea ecx, [ebp - 0x8a4]
push esi
push ebx
call fcn.00411703
push esi
push ebx
lea ecx, [ebp - 0x8bc]
call fcn.00411703
push esi
push ebx
lea ecx, [ebp - 0x8d4]
call fcn.00411703
push esi
push ebx
lea ecx, [ebp - 0x828]
call fcn.00411703
lea ecx, [ebp - 0x8f0]
call fcn.0042a5bc
push esi
push ebx
lea ecx, [ebp - 0x85c]
call fcn.00411703
push esi
push ebx
lea ecx, [ebp - 0x88c]
call fcn.00411703
push esi
push ebx
lea ecx, [ebp - 0x840]
mov byte [ebp - 4], 0
call fcn.00411703
mov esi, dword [ebp - 0x8e0]
jmp 0x427c86
push 0
push ebx
lea ecx, [ebp - 0x85c]
call fcn.00411703
push 0
push ebx
lea ecx, [ebp - 0x88c]
call fcn.00411703
push 0
push ebx
lea ecx, [ebp - 0x840]
mov byte [ebp - 4], 0
call fcn.00411703
inc esi
mov dword [ebp - 0x8e0], esi
cmp esi, edi
jl 0x4278ad
mov ecx, dword [ebp - 0x8e4]
push 0x18
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
pop ecx
cdq
idiv ecx
push 0
push ebx
lea ecx, [ebp - 0x874]
mov esi, eax
call fcn.00411703
cmp esi, edi
sete al
call fcn.0043312a
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x814], 8
mov ecx, dword [ebp - 0x828]
jae 0x427ce5
lea ecx, [ebp - 0x828]
cmp dword [ebp - 0x82c], 8
mov eax, dword [ebp - 0x840]
jae 0x427cfa
lea eax, [ebp - 0x840]
push ecx
push eax
push 0x58f
lea eax, [ebp - 0x914]
push edi
push eax
call fcn.004105b7
add esp, 0x14
lea eax, [ebp - 0x914]
push 0x455dcc
push eax
call fcn.004342c1
int3