Function at 0x411f10
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x46c208
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x48cc50]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48cc50]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x54]
mov edx, ecx
mov dword [esp + 0x18], edx
cmp ebx, 0xffffffff
jne 0x411f58
xor eax, eax
jmp 0x4122b4
mov eax, dword [edx + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x411f81
mov eax, dword [edx + 0x34]
mov esi, dword [eax]
add esi, ecx
cmp ecx, esi
jae 0x411f81
dec dword [eax]
mov eax, dword [edx + 0x24]
mov ecx, dword [eax]
lea edx, [ecx + 1]
mov dword [eax], edx
mov byte [ecx], bl
mov eax, ebx
jmp 0x4122b4
mov eax, dword [edx + 0x4c]
test eax, eax
je 0x4122b1
cmp dword [edx + 0x3c], 0
jne 0x411faf
push eax
movsx eax, bl
push eax
call fcn.0043d9b8
add esp, 8
cmp eax, 0xffffffff
je 0x4122b1
mov eax, ebx
jmp 0x4122b4
mov ecx, 0xf
xor eax, eax
mov byte [esp + 0x28], 0
mov byte [esp + 0x14], bl
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], 8
cmp ecx, 0x10
jae 0x411fdc
lea eax, [esp + 0x28]
mov byte [eax + 8], 0
mov dword [esp + 0x4c], 0
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
cmp edx, 0x10
jb 0x41223a
mov ebp, eax
test eax, eax
je 0x412023
mov ecx, eax
cmp edx, 0x10
jae 0x41200e
lea ecx, [esp + 0x28]
cmp ecx, ebp
ja 0x412023
mov ecx, eax
cmp edx, 0x10
jae 0x41201d
lea ecx, [esp + 0x28]
add ecx, ebx
cmp ebp, ecx
jbe 0x412034
call fcn.0043c68a
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
cmp ecx, 0xfffffffc
je 0x41205f
mov ecx, eax
cmp edx, 0x10
jae 0x412048
lea ecx, [esp + 0x28]
add ecx, ebx
cmp ebp, ecx
jb 0x41205f
call fcn.0043c68a
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
mov edi, ebx
cmp edx, 0x10
jb 0x412243
mov esi, eax
test eax, eax
je 0x412090
mov ecx, eax
cmp edx, 0x10
jae 0x41207b
lea ecx, [esp + 0x28]
cmp ecx, esi
ja 0x412090
mov ecx, eax
cmp edx, 0x10
jae 0x41208a
lea ecx, [esp + 0x28]
add ecx, ebx
cmp esi, ecx
jbe 0x4120a1
call fcn.0043c68a
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
cmp ecx, 0xfffffffc
je 0x4120be
cmp edx, 0x10
jae 0x4120b3
lea eax, [esp + 0x28]
add eax, ebx
cmp esi, eax
jb 0x4120be
call fcn.0043c68a
mov ebx, dword [esp + 0x18]
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x1c]
push eax
add ebp, edi
push ebp
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x25]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [ebx + 0x44]
push eax
call edx
test eax, eax
jl 0x4122a8
cmp eax, 1
jg 0x41225e
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
cmp edx, 0x10
jb 0x41224c
mov esi, eax
test eax, eax
je 0x412134
mov ecx, eax
cmp edx, 0x10
jae 0x41211b
lea ecx, [esp + 0x28]
cmp ecx, esi
ja 0x412134
mov ecx, eax
cmp edx, 0x10
jae 0x41212a
lea ecx, [esp + 0x28]
mov ebx, dword [esp + 0x38]
add ecx, ebx
cmp esi, ecx
jbe 0x412145
call fcn.0043c68a
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
cmp ecx, 0xfffffffc
je 0x412170
mov ecx, eax
cmp edx, 0x10
jae 0x412159
lea ecx, [esp + 0x28]
add ecx, ebx
cmp esi, ecx
jb 0x412170
call fcn.0043c68a
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
sub edi, esi
je 0x412201
cmp edx, 0x10
jb 0x412255
mov esi, eax
test eax, eax
je 0x4121ab
mov ecx, eax
cmp edx, 0x10
jae 0x412196
lea ecx, [esp + 0x28]
cmp ecx, esi
ja 0x4121ab
mov ecx, eax
cmp edx, 0x10
jae 0x4121a5
lea ecx, [esp + 0x28]
add ecx, ebx
cmp esi, ecx
jbe 0x4121bc
call fcn.0043c68a
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
cmp ecx, 0xfffffffc
je 0x4121d9
cmp edx, 0x10
jae 0x4121ce
lea eax, [esp + 0x28]
add eax, ebx
cmp esi, eax
jb 0x4121d9
call fcn.0043c68a
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x4c]
push eax
push edi
push 1
push esi
call fcn.0043dd89
add esp, 0x10
cmp edi, eax
jne 0x4122a8
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov byte [ecx + 0x41], 1
lea ecx, [esp + 0x14]
cmp dword [esp + 0x20], ecx
jne 0x412299
test edi, edi
ja 0x411ff4
lea ecx, [esp + 0x24]
cmp ebx, 0x20
jae 0x4122ac
push 0
push 8
call fcn.0040ffb0
jmp 0x411fe8
lea ebp, [esp + 0x28]
jmp 0x412003
lea esi, [esp + 0x28]
jmp 0x412070
lea esi, [esp + 0x28]
jmp 0x412110
lea esi, [esp + 0x28]
jmp 0x41218b
cmp eax, 3
jne 0x4122a8
mov edx, dword [ebx + 0x4c]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.0040fa40
add esp, 8
test al, al
je 0x412289
mov esi, dword [esp + 0x54]
lea ecx, [esp + 0x24]
call fcn.0040f7d0
mov eax, esi
jmp 0x4122b4
lea ecx, [esp + 0x24]
or esi, 0xffffffff
call fcn.0040f7d0
mov eax, esi
jmp 0x4122b4
lea ecx, [esp + 0x24]
call fcn.0040f7d0
mov eax, dword [esp + 0x54]
jmp 0x4122b4
lea ecx, [esp + 0x24]
call fcn.0040f7d0
or eax, 0xffffffff
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0043aa16
add esp, 0x3c
ret 4