Function at 0x41bc70
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x446528
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4551a0]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x7c]
lea esi, [esp + 0x20]
call fcn.00409d90
xor ebx, ebx
mov dword [esp + 0x74], ebx
mov edi, dword [esp + 0x20]
cmp edi, ebx
je 0x41be5f
cmp dword [ebp + 0x18], 8
jb 0x41bcc1
mov eax, dword [ebp + 4]
jmp 0x41bcc4
lea eax, [ebp + 4]
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x41be5f
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x78], 1
call fcn.0041abe0
lea esi, [esp + 0x34]
mov byte [esp + 0x74], 2
call fcn.0041ac40
lea esi, [esp + 0x24]
lea eax, [esp + 0x34]
call fcn.0041b7a0
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
mov dword [esp + 0x1c], ebx
jne 0x41bd2c
xor esi, esi
jmp 0x41bd38
mov eax, dword [esp + 0x2c]
sub eax, ecx
cmp eax, ebx
mov esi, eax
ja 0x41bd3d
call fcn.00430697
mov eax, dword [esp + 0x28]
cmp eax, ebx
jne 0x41bd4b
mov byte [esp + 0x1b], bl
jmp 0x41bd7a
cmp dword [edi], 0xffffffff
jne 0x41bd56
mov byte [esp + 0x1b], bl
jmp 0x41bd7a
mov edx, dword [edi]
push ebx
lea ecx, [esp + 0x20]
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41bd71
mov byte [esp + 0x1b], bl
jmp 0x41bd7a
cmp esi, dword [esp + 0x1c]
sete byte [esp + 0x1b]
cmp dword [edi], 0xffffffff
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x41bd94
mov eax, dword [edi]
push eax
call ebp
test eax, eax
je 0x41bd94
mov dword [edi], 0xffffffff
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
jne 0x41bda0
xor eax, eax
jmp 0x41bda6
mov eax, dword [esp + 0x2c]
sub eax, ecx
cmp dword [esp + 0x1c], eax
jne 0x41be18
cmp byte [esp + 0x1b], bl
je 0x41be18
lea esi, [esp + 0x34]
mov byte [esp + 0x74], 1
call fcn.0041d320
mov byte [esp + 0x74], bl
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x41bdd5
push eax
call fcn.0043004e
add esp, 4
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x74], 0xffffffff
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x41bdf9
cmp eax, ebx
je 0x41bdf9
push eax
call ebp
mov dword [edi], ebx
push edi
call fcn.0043004e
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
lea esi, [esp + 0x34]
mov byte [esp + 0x74], 1
call fcn.0041d320
mov byte [esp + 0x74], bl
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x41be3b
push eax
call fcn.0043004e
add esp, 4
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x74], 0xffffffff
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x41be7f
cmp eax, ebx
je 0x41be7f
push eax
call ebp
jmp 0x41be7d
cmp edi, ebx
mov dword [esp + 0x74], 0xffffffff
je 0x41be88
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x41be7f
cmp eax, ebx
je 0x41be7f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], ebx
push edi
call fcn.0043004e
add esp, 4
xor al, al
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret