Function at 0x411032
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b6aa
mov eax, dword fs:[0]
push eax
mov eax, 0x203c
call fcn.00428b80
mov eax, dword [0x43a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ecx, ecx
lea ebx, [esi + 0x34]
mov al, cl
mov byte [ebp - 0x202a], al
cmp dword [ebx], ecx
je 0x41129a
cmp dword [esi + 0x10], ecx
je 0x41129a
xor eax, eax
lea edi, [ebp - 0x2028]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x2018], ecx
mov dword [ebp - 0x2014], ecx
mov dword [ebp - 0x2018], ecx
mov dword [ebp - 0x2014], 7
mov word [ebp - 0x2028], ax
mov dword [ebp - 4], ecx
mov eax, esi
or dword [ebp - 0x2030], 0xffffffff
cmp dword [esi + 0x14], 7
jbe 0x4110c9
mov eax, dword [esi]
sub esp, 0x14
lea ecx, [ebp - 0x2028]
lea edx, [ebp - 0x2030]
push ecx
push eax
push ecx
push ecx
call fcn.004114af
add esp, 0x24
cmp dword [ebp - 0x2030], 0xffffffff
je 0x41123b
xor eax, eax
mov byte [ebp - 0x2029], al
mov dword [ebp - 0x2040], eax
mov dword [ebp - 0x203c], eax
cmp byte [esi + 0x38], al
jne 0x41112d
mov ecx, dword [ebx]
lea edx, [ebp - 0x2040]
push edx
push 1
push 0
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x14]
mov ecx, dword [ebx]
xor edx, edx
push edx
push edx
push edx
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x14]
mov edi, 0x2000
jmp 0x411166
mov eax, dword [ebp - 0x2034]
test eax, eax
je 0x41118a
and dword [ebp - 0x2044], 0
lea ecx, [ebp - 0x2044]
push 0
push ecx
push eax
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x2030]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x411183
mov ecx, dword [ebx]
lea edx, [ebp - 0x2034]
push edx
push edi
lea edx, [ebp - 0x2010]
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0xc]
test eax, eax
je 0x411134
jmp 0x41118a
mov byte [ebp - 0x2029], 1
cmp byte [esi + 0x38], 0
jne 0x4111a8
mov ecx, dword [ebx]
push 0
push 0
push dword [ebp - 0x203c]
mov eax, dword [ecx]
push dword [ebp - 0x2040]
push ecx
call dword [eax + 0x14]
push dword [ebp - 0x2030]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x2029], 0
je 0x4111d9
cmp dword [ebp - 0x2014], 7
lea ecx, [ebp - 0x2028]
jbe 0x4111d2
mov ecx, dword [ebp - 0x2028]
call fcn.00410671
jmp 0x41123b
lea edi, [esi + 0x18]
mov word [esi + 0x30], 1
lea eax, [ebp - 0x2028]
cmp edi, eax
je 0x411209
cmp dword [ebp - 0x2014], 7
jbe 0x4111fb
mov eax, dword [ebp - 0x2028]
push dword [ebp - 0x2018]
mov ecx, edi
push eax
call fcn.00402761
mov eax, dword [ebx]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
mov dword [esi + 0x38], eax
cmp dword [edi + 0x14], 7
jbe 0x41121e
mov edi, dword [edi]
push ebx
mov ecx, edi
call fcn.004106bb
pop ecx
test eax, eax
je 0x411230
and dword [ebx], 0
jmp 0x41123b
mov byte [esi + 0x3b], 1
mov byte [ebp - 0x202a], 1
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2014]
cmp ecx, 7
jbe 0x41127a
mov edx, dword [ebp - 0x2028]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x411271
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4112b4
push ecx
push edx
call fcn.0041206d
pop ecx
pop ecx
and dword [ebp - 0x2018], 0
xor eax, eax
mov word [ebp - 0x2028], ax
mov al, byte [ebp - 0x202a]
mov dword [ebp - 0x2014], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412051
leave
ret
call fcn.00415a4c
int3