Function at 0x41a820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4324d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x430
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push ebx
push ebx
push ebx
push ebx
push 1
push str.test
lea ecx, [ebp - 0x44]
call fcn.0042e2be
mov eax, dword [0x43db14]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
push ebx
lea eax, [ebp - 0x1c]
push 4
push eax
push 2
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], 0x7d0
call fcn.0042e401
push ebx
lea ecx, [ebp - 0x1c]
push 4
push ecx
push 3
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x1c], 1
call fcn.0042e401
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x14]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x54]
push ecx
push edx
push eax
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], 3
call fcn.0042e18d
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x14]
push ebx
push ebx
push eax
push ecx
lea ecx, [ebp - 0x44]
call fcn.0042e3b9
mov edx, dword [ebp - 0x18]
push 0x20000000
push ebx
push ebx
push 1
mov edi, eax
push ebx
push edx
push 1
mov ecx, edi
mov dword [ebp - 0x20], edi
call fcn.0042ed88
push ebx
mov esi, eax
push ebx
push ebx
mov dword [ebp - 0x24], esi
push ebx
mov ecx, esi
call fcn.0042ef12
cmp eax, ebx
je 0x41aae8
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.0042ef61
cmp dword [ebp - 0x48], 0xc8
jne 0x41aaa6
mov ecx, dword [ebp + 0xc]
push ebx
push 0x80
push 2
mov eax, dword [ecx]
push ebx
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
jne 0x41a95b
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x4c]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
jmp 0x41aae0
lea ecx, [ebp - 0x50]
push ebx
lea edx, [ebp - 0x43c]
push ecx
push edx
push 5
mov ecx, esi
mov dword [ebp - 0x50], 0x3e8
call fcn.0042ef45
lea eax, [ebp - 0x43c]
push eax
call fcn.0041c36a
push 0x2800
call fcn.00428e1c
mov edx, dword [esi]
add esp, 8
mov edi, eax
mov ecx, esi
push 0x2800
push edi
mov dword [ebp - 0x30], edi
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
call dword [edx + 0x34]
mov ecx, eax
cmp ecx, ebx
jbe 0x41a9f1
xor eax, eax
cmp eax, ecx
jae 0x41a9c6
mov ebx, dword [ebp - 0x28]
xor edx, edx
mov dl, byte [eax + edi]
add ebx, edx
inc eax
mov dword [ebp - 0x28], ebx
xor ebx, ebx
jmp 0x41a9b0
lea eax, [ebp + 8]
push ebx
push eax
push ecx
mov ecx, dword [ebp - 0x1c]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
add eax, edx
push 0x2800
mov dword [ebp + 0xc], eax
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x34]
jmp 0x41a9a8
push edi
call fcn.00428e45
mov ecx, dword [ebp - 0x1c]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
mov dword [ebp - 4], 2
je 0x41aa16
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x4c]
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
je 0x41aa22
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ecx, [ebp - 0x44]
call fcn.0042e363
mov ecx, dword [0x43db14]
mov dword [ebp - 0x2c], ecx
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp - 0x28]
push esi
push edi
lea edx, [ebp - 0x2c]
push 0x43daf8
push edx
mov byte [ebp - 4], 5
call fcn.00427b91
add esp, 0x10
cmp edi, esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
je 0x41aa65
call fcn.004288f2
jmp 0x41aae8
call fcn.004288f2
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004288f2
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004288f2
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
call fcn.0042e279
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00428e45
add esp, 4
cmp esi, ebx
mov dword [ebp - 0x30], ebx
je 0x41aac9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x4c]
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
mov dword [ebp - 0x24], ebx
cmp edi, ebx
je 0x41aae0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
mov dword [ebp - 0x20], ebx
lea ecx, [ebp - 0x44]
call fcn.0042e363
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004288f2
mov byte [ebp - 4], bl
jmp 0x41ab51
lea ecx, [ebp - 0x14]
call fcn.004288f2
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
call fcn.0042e279
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret