Function at 0x411dc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5269f8
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x56e00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x50], ebx
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, 0xffffffff
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x5c], eax
sete al
test al, al
je 0x411e15
xor eax, eax
cmp ecx, 0xffffffff
cmovne eax, ecx
jmp 0x412130
mov eax, dword [ebx + 0x20]
mov edx, dword [eax]
test edx, edx
je 0x411e43
mov esi, dword [ebx + 0x30]
mov edi, dword [esi]
lea eax, [edi + edx]
cmp edx, eax
jae 0x411e43
lea eax, [edi - 1]
mov dword [esi], eax
mov ecx, dword [ebx + 0x20]
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov byte [edx], al
jmp 0x412130
cmp dword [ebx + 0x4c], 0
jne 0x411e51
or eax, 0xffffffff
jmp 0x412130
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x411e72
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebx + 0x54]
mov dword [esi], ecx
sub edx, ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebp + 8]
mov dword [eax], edx
cmp dword [ebx + 0x38], 0
jne 0x411e97
push dword [ebx + 0x4c]
movsx eax, cl
push eax
call fcn.004a4130
or ecx, 0xffffffff
add esp, 8
cmp eax, ecx
cmovne ecx, dword [ebp + 8]
mov eax, ecx
jmp 0x412130
push 0
mov byte [ebp - 0x11], cl
lea ecx, [ebp - 0x38]
push 8
call fcn.00410e50
lea eax, [ebp - 0x74]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x38]
call fcn.00410a20
mov edi, eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x38]
call fcn.00410a20
mov esi, eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.004168c0
mov edi, dword [ebp - 0x24]
mov ecx, esi
mov ebx, eax
call fcn.004168c0
mov edx, dword [ebp - 0x50]
mov ecx, dword [edx + 0x38]
add edx, 0x40
mov dword [ebp - 0x58], edx
lea edx, [ebp - 0x44]
push edx
lea edx, [edi + ebx]
mov esi, dword [ecx]
push edx
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x11]
push eax
push dword [ebp - 0x58]
call dword [esi + 0x1c]
mov esi, eax
push 3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.0048f0a0
lea ecx, [ebp - 0x68]
call fcn.00402690
lea ecx, [ebp - 0x18]
call fcn.0048f140
push 3
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xa
call fcn.0048f0a0
lea ecx, [ebp - 0x74]
call fcn.00402690
lea ecx, [ebp - 0x1c]
call fcn.0048f140
test esi, esi
js 0x4120e9
nop
cmp esi, 1
jg 0x412153
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x38]
call fcn.00410a20
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.004168c0
mov esi, dword [ebp - 0x44]
sub esi, eax
push 3
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xf
call fcn.0048f0a0
lea ecx, [ebp - 0x80]
call fcn.00402690
lea ecx, [ebp - 0x3c]
call fcn.0048f140
test esi, esi
je 0x411fd9
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x38]
call fcn.00410a20
mov byte [ebp - 4], 0x10
mov ecx, eax
mov ebx, dword [ebp - 0x54]
or ebx, 1
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x5c], ebx
call fcn.004168c0
mov edi, dword [ebp - 0x50]
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.004b8380
add esp, 0x10
cmp esi, eax
je 0x411fdf
mov byte [ebp - 0x49], 1
jmp 0x411fe3
mov ebx, dword [ebp - 0x54]
mov edi, dword [ebp - 0x50]
mov byte [ebp - 0x49], 0
mov dword [ebp - 4], 0
test bl, 1
je 0x41201a
and ebx, 0xfffffffe
mov dword [ebp - 0x54], ebx
push 3
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x14
call fcn.0048f0a0
lea ecx, [ebp - 0x8c]
call fcn.00402690
lea ecx, [ebp - 0x40]
call fcn.0048f140
mov byte [ebp - 4], 0
cmp byte [ebp - 0x49], 0
jne 0x4120e9
lea eax, [ebp - 0x11]
mov byte [edi + 0x3d], 1
cmp dword [ebp - 0x48], eax
jne 0x41214e
test esi, esi
jne 0x41204d
cmp dword [ebp - 0x24], 0x20
jae 0x4120e9
push esi
push 8
lea ecx, [ebp - 0x38]
call fcn.00410a70
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x38]
call fcn.00410a20
mov edi, eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x38]
call fcn.00410a20
mov esi, eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.004168c0
mov edi, dword [ebp - 0x24]
mov ecx, esi
mov ebx, eax
call fcn.004168c0
mov ecx, dword [ebp - 0x50]
lea edx, [ebp - 0x44]
push edx
lea edx, [edi + ebx]
push edx
mov ecx, dword [ecx + 0x38]
push eax
lea eax, [ebp - 0x48]
push eax
mov esi, dword [ecx]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x11]
push eax
push dword [ebp - 0x58]
call dword [esi + 0x1c]
mov esi, eax
push 3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.0048f0a0
lea ecx, [ebp - 0x68]
call fcn.00402690
lea ecx, [ebp - 0x18]
call fcn.0048f140
push 3
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xa
call fcn.0048f0a0
lea ecx, [ebp - 0x74]
call fcn.00402690
lea ecx, [ebp - 0x1c]
call fcn.0048f140
test esi, esi
jns 0x411f50
or ebx, 0xffffffff
mov dword [ebp - 4], 0x15
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x412108
inc eax
push eax
push dword [ebp - 0x34]
call fcn.00419260
add esp, 8
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x16
call fcn.00416a30
lea ecx, [ebp - 0x38]
call fcn.00415cd0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048cd50
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp + 8]
jmp 0x4120ec
cmp esi, 3
jne 0x4120e9
mov eax, dword [ebp - 0x50]
push dword [eax + 0x4c]
movsx eax, byte [ebp - 0x11]
push eax
call fcn.004a4130
or ecx, 0xffffffff
add esp, 8
cmp eax, ecx
cmovne ecx, dword [ebp + 8]
mov ebx, ecx
jmp 0x4120ec