Function at 0x41b960
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8368
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x50545c]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xf8], ecx
mov eax, dword [ebp - 0xf8]
cmp dword [eax + 0x3c], 0
je 0x41b9ab
mov ecx, dword [ebp - 0xf8]
movzx edx, byte [ecx + 0x42]
test edx, edx
jne 0x41b9b7
mov al, 1
jmp 0x41bc4d
mov dword [ebp - 0x10], 8
push 0xffff
mov eax, dword [ebp - 0xf8]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xf8]
mov eax, dword [edx + 4]
call eax
mov word [ebp - 0x3a], ax
mov ecx, 0xffff
mov word [ebp - 0x3c], cx
movzx edx, word [ebp - 0x3a]
movzx eax, word [ebp - 0x3c]
xor ecx, ecx
cmp eax, edx
sete cl
movzx edx, cl
test edx, edx
je 0x41ba00
xor al, al
jmp 0x41bc4d
lea eax, [ebp - 0x69]
mov dword [ebp - 0x68], eax
push 0
push 0
lea ecx, [ebp - 0x34]
call fcn.00410110
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0041c5c0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0x10
jb 0x41ba33
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x70], ecx
jmp 0x41ba39
lea edx, [ebp - 0x30]
mov dword [ebp - 0x70], edx
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x44]
call fcn.0041db30
lea ecx, [ebp - 0x44]
call fcn.0041d5a0
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x78], edx
cmp dword [ebp - 0x1c], 0x10
jb 0x41ba68
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x7c], eax
jmp 0x41ba6e
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x7c], ecx
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0041db30
lea ecx, [ebp - 0x4c]
call fcn.0041d5a0
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0xf8]
mov edx, dword [ecx + 0x3c]
mov dword [ebp - 0x84], edx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x74]
add ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x80]
push edx
mov eax, dword [ebp - 0xf8]
add eax, 0x44
push eax
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x84]
mov eax, dword [edx + 0x18]
call eax
mov dword [ebp - 0xfc], eax
cmp dword [ebp - 0xfc], 0
je 0x41baee
cmp dword [ebp - 0xfc], 1
je 0x41baf8
cmp dword [ebp - 0xfc], 3
je 0x41bbfd
jmp 0x41bc19
mov ecx, dword [ebp - 0xf8]
mov byte [ecx + 0x42], 0
cmp dword [ebp - 0x1c], 0x10
jb 0x41bb09
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x88], edx
jmp 0x41bb12
lea eax, [ebp - 0x30]
mov dword [ebp - 0x88], eax
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x88]
push edx
lea ecx, [ebp - 0x54]
call fcn.0041db30
lea ecx, [ebp - 0x54]
call fcn.0041d5a0
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x8c]
mov dword [ebp - 0x38], eax
je 0x41bbbf
cmp dword [ebp - 0x1c], 0x10
jb 0x41bb52
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x90], ecx
jmp 0x41bb5b
lea edx, [ebp - 0x30]
mov dword [ebp - 0x90], edx
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x90]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.0041db30
lea ecx, [ebp - 0x5c]
call fcn.0041d5a0
mov dword [ebp - 0x94], eax
mov edx, dword [ebp - 0xf8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
push 1
mov edx, dword [ebp - 0x94]
push edx
call fcn.004953fe
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x41bbbf
mov byte [ebp - 0x5d], 0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00410110
mov al, byte [ebp - 0x5d]
jmp 0x41bc4d
mov eax, dword [ebp - 0xf8]
movzx ecx, byte [eax + 0x42]
test ecx, ecx
jne 0x41bbe9
mov byte [ebp - 0x5e], 1
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00410110
mov al, byte [ebp - 0x5e]
jmp 0x41bc4d
cmp dword [ebp - 0x38], 0
jne 0x41bbfb
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0041a820
jmp 0x41bc35
mov byte [ebp - 0x5f], 1
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00410110
mov al, byte [ebp - 0x5f]
jmp 0x41bc4d
mov byte [ebp - 0x60], 0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00410110
mov al, byte [ebp - 0x60]
jmp 0x41bc4d
jmp 0x41ba25
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0049318c
mov esp, ebp
pop ebp
ret