Function at 0x440c90
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 0x440ca8
lea ebp, [ebx + 8]
movzx eax, word [ebp]
test ax, ax
jne 0x440ce5
mov eax, dword [0x4be40c]
cmp byte [eax + 0x104], 0
mov dword [eax + 0x30], 0x57
jne 0x441028
mov eax, dword [0x4c264c]
push eax
or eax, 0xffffffff
mov ecx, 0x49f2c4
call fcn.00401200
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
test ebx, ebx
je 0x440cee
mov esi, dword [ebx + 4]
jmp 0x440cf0
xor esi, esi
test esi, esi
setne cl
cmp eax, 0x2a
sete al
test al, al
je 0x440d3f
add ebp, 2
cmp word [ebp], 0
jne 0x440e84
push 0xffffffffffffffff
call fcn.00489068
add eax, 0x20
push eax
push edi
call fcn.0048a957
add esp, 8
cmp eax, 0xffff
mov eax, dword [esp + 0x1c]
sete cl
movzx edx, cl
push edx
push eax
call fcn.0042f0e0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
test cl, cl
jne 0x440fb4
mov ecx, dword [0x4c1de8]
test ecx, ecx
je 0x440e6f
mov al, byte [ecx + 0x17]
test al, al
jne 0x440d64
mov edx, dword [ecx + 0xc]
mov dl, byte [edx + 0x17]
jmp 0x440d66
mov dl, al
cmp dl, 3
jne 0x440d7e
mov eax, dword [esp + 0x18]
push ebp
push eax
call fcn.00441050
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
test al, al
jne 0x440d85
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 0x15]
test cl, 1
je 0x440e6f
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 0x440de6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [0x4be40c]
mov dword [ecx + 0x30], eax
cmp byte [ecx + 0x104], 0
jne 0x441028
mov edx, dword [0x4c264c]
push edx
or eax, 0xffffffff
mov ecx, 0x49f2c4
call fcn.00401200
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov esi, dword [0x4c1de8]
cmp byte [esi + 0x17], 0
jne 0x440df5
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x440e02
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x440e1b
test byte [esi + 0x15], 4
je 0x440e16
mov eax, esi
call fcn.0042f9b0
mov esi, dword [esi + 8]
jmp 0x440e2d
cmp al, 2
jne 0x440e28
call fcn.00401000
mov esi, eax
jmp 0x440e2d
mov esi, 0x4c3f50
mov eax, dword [0x4c1de8]
call fcn.00412e80
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]
mov edx, dword [esp + 0x18]
test esi, esi
sete al
movzx ecx, al
push 0xffffffffffffffff
push ecx
push edx
call fcn.0042f0e0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
push 0x4a5508
push edi
call fcn.004898b8
add esp, 8
test eax, eax
setne al
jmp 0x440e8c
test cl, cl
jne 0x440fb4
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 0x440eb7
mov eax, dword [0x4c1da0]
call fcn.004146c0
mov edi, eax
mov eax, dword [0x4be40c]
jmp 0x440ec2
mov eax, dword [0x4be40c]
mov edi, dword [eax + 0xf8]
cmp edi, 0xffffffff
jne 0x440ef8
cmp byte [eax + 0x104], 0
mov dword [eax + 0x30], 0x57
jne 0x440ef1
mov eax, dword [0x4c264c]
push eax
or eax, edi
mov ecx, 0x49f2c4
call fcn.00401200
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov ecx, esi
jmp 0x44102c
cmp edi, 0xfde9
jne 0x440f05
or ebx, 0x10
jmp 0x440f10
cmp edi, 0x4b0
jne 0x440f10
or ebx, 0x20
push 0x34
call fcn.0048a84b
add esp, 4
test eax, eax
je 0x440f29
mov esi, eax
call fcn.00414890
mov esi, eax
jmp 0x440f2b
xor esi, esi
test esi, esi
jne 0x440f4b
mov ecx, dword [esp + 0x18]
push 0x49c820
push esi
push str.Out_of_memory.
call fcn.0042f150
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov edx, dword [esi]
mov eax, dword [edx + 4]
push ebx
push ebp
mov ecx, esi
mov dword [esi + 8], 0
call eax
test al, al
je 0x440f73
mov eax, edi
and eax, 0x7fffffff
mov ecx, esi
call fcn.0046d9d0
test al, al
jne 0x440fa5
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [0x4be40c]
cmp byte [ecx + 0x104], 0
mov dword [ecx + 0x30], eax
jne 0x441028
mov ecx, dword [0x4c264c]
push ecx
jmp 0x440dd1
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
test ebx, ebx
je 0x440fb4
mov dword [ebx + 4], esi
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x440fc0
sub eax, edx
sar eax, 1
je 0x440fe1
push edi
push esi
call fcn.0046df10
test eax, eax
jne 0x440fe1
lea edi, [eax + 1]
jmp 0x440fe3
xor edi, edi
test ebx, ebx
jne 0x440ff5
test esi, esi
je 0x440ff5
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [0x4be40c]
mov dword [ecx + 0x30], eax
test edi, edi
jne 0x440dbd
mov ecx, dword [0x4c264c]
push ecx
or eax, 0xffffffff
mov ecx, 0x49c8d4
call fcn.00401200
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov ecx, dword [esp + 0x18]
push 0x49c820
push 0
push 0x49f2c4
call fcn.0042ee20
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10