Function at 0x41a4f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430701
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x43c0d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 3], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x18], 0
je 0x41a55f
push str.PE::WriteBytes
push 0x8f1
push 0x8000b
jmp 0x41a94d
test eax, eax
je 0x41a941
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x41a941
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [edi + 0x39d], 0
jne 0x41a5f0
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41a5e8
mov eax, dword [ebp + 0x14]
sub eax, 1
je 0x41a5aa
sub eax, 1
je 0x41a5a3
sub eax, 1
jne 0x41a5aa
mov eax, 2
jmp 0x41a5ac
mov eax, 1
jmp 0x41a5ac
xor eax, eax
push eax
lea eax, [ebp - 0x20]
push eax
push ecx
push dword [edi + 0x398]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
je 0x41a5d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41a5e8
push str.PE::WriteBytes
push 0x910
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
jmp 0x41a94d
lea edx, [edi + 0x3e8]
jmp 0x41a638
mov eax, dword [edi + 0x3e8]
lea edx, [edi + 0x3e8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], edx
test eax, eax
je 0x41a633
cmp eax, 2
jne 0x41a618
mov eax, dword [ebp - 0x34]
add eax, dword [ebp + 0x10]
mov dword [edx], eax
jmp 0x41a63b
cmp eax, 1
jne 0x41a624
mov ecx, dword [ebp + 0x10]
mov dword [edx], ecx
jmp 0x41a63b
cmp eax, 3
jne 0x41a63b
mov eax, dword [edi + 0x58]
sub eax, dword [ebp + 0x10]
mov dword [edx], eax
jmp 0x41a63b
mov ecx, dword [ebp + 0x10]
mov dword [edx], ecx
mov dword [ebp - 0x28], edx
cmp byte [edi + 0x39d], 0
je 0x41a8c8
cmp byte [edi + 4], 0
je 0x41a8c8
mov ecx, dword [edi + 0x390]
add ecx, dword [edx]
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x40], ecx
mov ecx, dword [edi + 0x3ec]
add ecx, dword [edx]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [0x43e230]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x43d844]
cmp eax, dword [ecx + 4]
jg 0x41a971
jmp 0x41a68d
mov edx, dword [ebp - 0x28]
cmp dword [ebp + 0x14], 0
jne 0x41a7ad
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
push 0x40
push esi
push dword [edx]
call fcn.0041eb00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [edi + 0x3f6], 0
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
je 0x41a6d1
push esi
push dword [ebp - 0x30]
push eax
call fcn.00423cb0
add esp, 0xc
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x21], 1
jmp 0x41a6f0
lea edx, [ebp - 0x14]
mov ecx, 0x43d7e8
push edx
push esi
push dword [ebp - 0x30]
push eax
push dword [edi + 0x398]
call fcn.004060f0
test eax, eax
setne byte [ebp - 0x21]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
push esi
push dword [eax]
call fcn.0041eb00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp - 0x21], 0
jne 0x41a728
push str.PE::WriteBytes
push 0x94c
push eax
mov ecx, edi
jmp 0x41a94d
cmp esi, dword [ebp - 0x14]
je 0x41a743
push str.PE::WriteBytes
push 0x950
push 0x80006
mov ecx, edi
jmp 0x41a94d
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
call eax
cmp byte [edi + 0x39d], 0
jne 0x41a90d
cmp dword [ebp + 0x10], 0
je 0x41a91d
cmp byte [ebp + 0x18], 0
jne 0x41a91d
push 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x34]
push dword [edi + 0x398]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x41a795
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41a91d
push str.PE::WriteBytes
push 0x992
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
jmp 0x41a94d
mov eax, dword [edi + 0x3ec]
xor ecx, ecx
cdq
cmp ecx, edx
mov ecx, dword [ebp - 0x2c]
ja 0x41a7d4
jb 0x41a7c3
cmp ecx, eax
ja 0x41a7d4
mov eax, dword [edi + 0x58]
add eax, dword [edi + 0x3ec]
cmp ecx, eax
jae 0x41a891
lea eax, [ebp - 0x18]
push eax
push 0x40
push esi
push ecx
mov ecx, edi
call fcn.0041eb00
cmp byte [edi + 0x3f6], 0
je 0x41a818
push esi
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.00423cb0
add esp, 0xc
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
push dword [ebp - 0x18]
push esi
push dword [ebp - 0x2c]
call fcn.0041eb00
jmp 0x41a86d
lea eax, [ebp - 0x14]
mov ecx, 0x43d7e8
push eax
push esi
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push dword [edi + 0x398]
call fcn.004060f0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
mov ecx, edi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push dword [ebp + 0xc]
push dword [ebp - 0x2c]
call fcn.0041eb00
test esi, esi
jne 0x41a86a
push str.PE::WriteBytes
push 0x96b
push dword [ebp - 0x38]
mov ecx, edi
jmp 0x41a94d
mov esi, dword [ebp + 0xc]
cmp esi, dword [ebp - 0x14]
je 0x41a888
push str.PE::WriteBytes
push 0x96f
push 0x80006
mov ecx, edi
jmp 0x41a94d
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
call eax
mov ecx, dword [edi + 0x390]
mov edx, dword [ebp - 0x40]
cmp edx, ecx
ja 0x41a8ab
mov eax, dword [edi + 0x58]
add eax, ecx
cmp edx, eax
jae 0x41a74c
cmp ecx, dword [edi + 0x3ec]
je 0x41a8c0
push esi
push dword [ebp - 0x30]
push edx
call fcn.00423cb0
add esp, 0xc
mov dword [ebp - 0x14], esi
jmp 0x41a74c
push 0
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 0x30]
push dword [edi + 0x398]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [edi + 0x398], 0
jne 0x41a92c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41a92c
cmp esi, dword [ebp - 0x1c]
je 0x41a74c
push str.PE::WriteBytes
push 0x985
push 0x80007
mov ecx, edi
jmp 0x41a94d
cmp byte [ebp + 0x18], 0
mov eax, dword [ebp - 0x28]
jne 0x41a920
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
jmp 0x41a920
mov eax, dword [ebp - 0x28]
cmp byte [edi + 4], 0
je 0x41a928
add dword [eax], esi
mov al, 1
jmp 0x41a954
push str.PE::WriteBytes
push 0x981
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
jmp 0x41a94d
push str.PE::WriteBytes
push 0x8f6
push 0x57
call fcn.0041b4b0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042264a
mov esp, ebp
pop ebp
ret 0x14
push 0x43d844
call fcn.00422334
add esp, 4
cmp dword [0x43d844], 0xffffffff
jne 0x41a68a
push 0x5c
push 0
push 0x43d7e8
mov dword [ebp - 4], 0
call fcn.00424230
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
add esp, 0xc
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x58], xmm0
push 8
push 0x4326dc
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00401a60
push 0
push 0
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
mov dword [ebp - 0x38], esp
mov dword [ebp - 0x3c], ecx
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
push 0x12
push str.WriteProcessMemory
mov byte [ebp - 4], 3
call fcn.00401a60
sub esp, 0x18
mov byte [ebp - 4], 4
mov eax, esp
lea ecx, [ebp - 0x58]
push ecx
push eax
call fcn.00421410
add esp, 8
mov byte [ebp - 4], 2
mov ecx, 0x43d7e8
call fcn.004121b0
lea ecx, [ebp - 0x58]
call fcn.00405aa0
push 0x431a10
call fcn.00422635
push 0x43d844
mov dword [ebp - 4], 0xffffffff
call fcn.004222e3
add esp, 8
jmp 0x41a68a