Function at 0x441b40
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x20]
test ebx, ebx
je 0x441b58
lea ebp, [ebx + 8]
movzx eax, word [ebp]
test ax, ax
jne 0x441bb1
mov eax, dword [0x4c040c]
cmp byte [eax + 0x104], 0
mov dword [eax + 0x30], 0x57
jne 0x441b94
mov eax, dword [0x4c46ec]
push 1
push 0
push 0xffffffffffffffff
push 0x4a12cc
push eax
call fcn.004742b0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov ecx, dword [esp + 0x18]
push 0x49e828
push 0
push 0x4a12cc
call fcn.0042ec70
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
test ebx, ebx
je 0x441bba
mov esi, dword [ebx + 4]
jmp 0x441bbc
xor esi, esi
test esi, esi
setne cl
cmp eax, 0x2a
sete al
test al, al
je 0x441c1d
add ebp, 2
cmp word [ebp], 0
jne 0x441d58
call fcn.0048ad28
add eax, 0x20
push eax
push edi
call fcn.0048c617
add esp, 8
cmp eax, 0xffff
sete cl
mov byte [esp + 0x20], cl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x4c040c]
mov ecx, dword [esp + 0x18]
mov dword [edx + 0x30], eax
mov eax, dword [esp + 0x20]
push eax
push ecx
call fcn.0042ed60
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
test cl, cl
jne 0x441e79
mov ecx, dword [0x4c3e88]
test ecx, ecx
je 0x441d43
mov al, byte [ecx + 0x17]
test al, al
jne 0x441c42
mov edx, dword [ecx + 0xc]
mov dl, byte [edx + 0x17]
jmp 0x441c44
mov dl, al
cmp dl, 3
jne 0x441c5c
mov eax, dword [esp + 0x18]
push ebp
push eax
call fcn.00441ee0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
test al, al
jne 0x441c63
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 0x15]
test cl, 1
je 0x441d43
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x441cc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4c040c]
cmp byte [ecx + 0x104], 0
mov dword [ecx + 0x30], eax
jne 0x441b94
mov edx, dword [0x4c46ec]
push 1
push 0
push 0xffffffffffffffff
push 0x4a12cc
push edx
call fcn.004742b0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov esi, dword [0x4c3e88]
cmp byte [esi + 0x17], 0
jne 0x441cd6
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x441ce3
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x441cfc
test byte [esi + 0x15], 4
je 0x441cf7
mov eax, esi
call fcn.0042f790
mov esi, dword [esi + 8]
jmp 0x441d0e
cmp al, 2
jne 0x441d09
call fcn.00401000
mov esi, eax
jmp 0x441d0e
mov esi, 0x4c5ff0
mov eax, dword [0x4c3e88]
call fcn.00412f70
mov edx, dword [eax]
push 0
lea ecx, [esp + 0x24]
push ecx
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
sete dl
jmp 0x441ec0
push 0x4a75f8
push edi
call fcn.0048b578
add esp, 8
test eax, eax
setne al
jmp 0x441d60
test cl, cl
jne 0x441e79
mov esi, dword [esp + 0x18]
xor ebx, ebx
test al, al
setne bl
dec ebx
and ebx, 4
or ebx, 2
cmp byte [esi + 1], 2
jbe 0x441d8b
mov eax, dword [0x4c3e40]
call fcn.004143e0
mov edi, eax
mov eax, dword [0x4c040c]
jmp 0x441d96
mov eax, dword [0x4c040c]
mov edi, dword [eax + 0xf8]
cmp edi, 0xffffffff
jne 0x441dca
cmp byte [eax + 0x104], 0
mov dword [eax + 0x30], 0x57
je 0x441ca8
push 0x49e828
push 0
push 0x4a12cc
mov ecx, esi
call fcn.0042ec70
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
cmp edi, 0xfde9
jne 0x441dd7
or ebx, 0x10
jmp 0x441de2
cmp edi, 0x4b0
jne 0x441de2
or ebx, 0x20
push 0x38
call fcn.0048c50b
add esp, 4
test eax, eax
je 0x441dfb
mov esi, eax
call fcn.004145b0
mov esi, eax
jmp 0x441dfd
xor esi, esi
test esi, esi
jne 0x441e1d
mov ecx, dword [esp + 0x18]
push 0x49e828
push esi
push str.Out_of_memory.
call fcn.0042ef30
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov eax, dword [esi]
mov edx, dword [eax + 4]
push ebx
push ebp
mov ecx, esi
mov dword [esi + 8], 0
call edx
test al, al
je 0x441e45
mov eax, edi
and eax, 0x7fffffff
mov ecx, esi
call fcn.0046f390
test al, al
jne 0x441e6a
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4c040c]
cmp byte [ecx + 0x104], 0
mov dword [ecx + 0x30], eax
jmp 0x441b74
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
test ebx, ebx
je 0x441e79
mov dword [ebx + 4], esi
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x441e80
sub eax, edx
sar eax, 1
je 0x441ea1
push edi
push esi
call fcn.0046f910
test eax, eax
jne 0x441ea1
lea edi, [eax + 1]
jmp 0x441ea3
xor edi, edi
test ebx, ebx
jne 0x441eb5
test esi, esi
je 0x441eb5
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
setne dl
mov ecx, dword [0x4c040c]
mov dword [ecx + 0x30], eax
mov ecx, dword [esp + 0x18]
movzx eax, dl
push eax
push ecx
call fcn.0042ed60
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10