Function at 0x10011220
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004d8c0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x1005d014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0xdc], 0
jle 0x100116e0
cmp dword [edi + 0xb4], 0
jl 0x100116e0
jg 0x10011273
cmp dword [edi + 0xb0], 0
jbe 0x100116e0
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 1
test byte [edi + 0x4c], 1
je 0x1001135d
lea eax, [ebp - 0x60]
push eax
lea ecx, [edi + 0x58]
call fcn.1000ba90
mov byte [ebp - 4], 2
mov ecx, 0x1005409c
cmp dword [eax + 0x10], 0
je 0x100112cb
mov ecx, dword [eax + 4]
cmp dword [edi + 0xa4], 0
mov eax, 0x1005409c
je 0x100112df
mov eax, dword [edi + 0x98]
push ecx
push eax
lea eax, [ebp - 0x4c]
push str._s__s.bz2
push eax
call fcn.1000b720
mov byte [ebp - 4], 1
add esp, 0x10
cmp dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
jl 0x10011313
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x10011313
push eax
call fcn.1003217f
add esp, 4
push 0x5c
lea ecx, [ebp - 0x4c]
call fcn.1000b7b0
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x4c]
call fcn.1000b990
mov byte [ebp - 4], 3
mov ecx, 0x1005409c
cmp dword [eax + 0x10], 0
je 0x1001133b
mov ecx, dword [eax + 4]
call fcn.100047c0
cmp dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
jl 0x1001135d
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x1001135d
push eax
call fcn.1003217f
add esp, 4
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 5
mov eax, dword [edi + 0x4c]
shr eax, 5
test al, 1
je 0x100113ad
cmp dword [edi + 0x68], 0
mov eax, 0x1005409c
je 0x100113a2
mov eax, dword [edi + 0x5c]
push eax
lea ecx, [ebp - 0x38]
call fcn.1000b480
jmp 0x100113e2
cmp dword [edi + 0x68], 0
mov ecx, 0x1005409c
je 0x100113bb
mov ecx, dword [edi + 0x5c]
cmp dword [edi + 0xa4], 0
mov eax, 0x1005409c
je 0x100113cf
mov eax, dword [edi + 0x98]
push ecx
push eax
lea eax, [ebp - 0x38]
push 0x10056f68
push eax
call fcn.1000b720
add esp, 0x10
push 0x5c
lea ecx, [ebp - 0x38]
call fcn.1000b7b0
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x38]
call fcn.1000b990
mov byte [ebp - 4], 6
mov ecx, 0x1005409c
cmp dword [eax + 0x10], 0
je 0x1001140a
mov ecx, dword [eax + 4]
call fcn.100047c0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
jl 0x10011430
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x10011430
push eax
call fcn.1003217f
add esp, 4
mov eax, dword [edi + 0x4c]
mov ebx, 0x1005409c
shr eax, 5
test al, 1
je 0x1001144e
cmp dword [ebp - 0x28], 0
mov ecx, ebx
cmovne ecx, dword [ebp - 0x34]
call fcn.10004a80
test byte [edi + 0x4c], 1
mov byte [ebp - 0xd], 0
je 0x100114d2
mov esi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x3c]
test esi, esi
je 0x10011469
lea eax, [esi - 1]
test eax, eax
jne 0x1001147c
test edx, edx
je 0x10011686
lea eax, [edx - 1]
test eax, eax
je 0x10011686
cmp dword [edi + 0xd4], 0xfffffffe
mov eax, dword [edi + 0xdc]
mov dword [ebp - 0x20], eax
jne 0x100114ab
push 0x20d
mov edx, str.C:_build_partners_boostic_rungoldsrc_client_apprunmsvc....public_tier1_utlmemory.h
mov ecx, str.Assertion_failed__IsReadOnly__
call fcn.10003100
mov edx, dword [ebp - 0x3c]
add esp, 4
mov esi, dword [ebp - 0x28]
push dword [ebp - 0x20]
test edx, edx
mov ecx, ebx
push dword [edi + 0xcc]
cmovne ecx, dword [ebp - 0x48]
mov eax, ebx
test esi, esi
push ecx
cmovne eax, dword [ebp - 0x34]
mov ecx, edi
push eax
call fcn.10011700
jmp 0x10011608
cmp dword [ebp - 0x28], 0
mov ecx, ebx
mov eax, ebx
mov dword [ebp - 0x5c], 0
cmovne ecx, dword [ebp - 0x34]
test ecx, ecx
mov dword [ebp - 0x58], 0
mov word [ebp - 0x54], 0
cmovne eax, ecx
mov byte [ebp - 0x52], 0
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x50], 4
push 0x10056800
push ecx
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 7
call fcn.10001770
add esp, 4
push eax
call fcn.10031fc4
mov esi, eax
add esp, 8
mov dword [ebp - 0x20], esi
test esi, esi
je 0x100115f9
mov ebx, dword [edi + 0xdc]
cmp ebx, 0x40000
jle 0x100115c7
lea ecx, [edi + 0xc8]
mov dword [ebp - 0x18], ebx
call fcn.10004d70
xor edx, edx
mov ecx, eax
cmp dword [edi + 0x50], 4
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], edx
jne 0x100115a9
test ebx, ebx
je 0x100115a6
push dword [ebp - 0x20]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x40000
cmp ebx, 0x40000
lea eax, [ebp - 0x18]
cmovae eax, edx
mov esi, dword [eax]
push esi
push 1
push ecx
call fcn.10038174
mov edx, dword [ebp - 0x14]
sub ebx, esi
mov ecx, dword [ebp - 0x1c]
add edx, eax
add ecx, esi
mov dword [ebp - 0x14], edx
add esp, 0x10
mov dword [ebp - 0x18], ebx
cmp dword [edi + 0x50], 4
mov dword [ebp - 0x1c], ecx
je 0x10011560
mov esi, dword [ebp - 0x20]
cmp edx, dword [edi + 0xdc]
je 0x100115e3
push esi
call fcn.10031dc2
add esp, 4
lea ecx, [ebp - 0x60]
call fcn.10001820
jmp 0x10011686
push esi
push ebx
push 1
push ecx
lea ecx, [edi + 0xc8]
call fcn.10004d70
add esp, 4
push eax
call fcn.10038174
add esp, 0x10
push esi
call fcn.10031dc2
add esp, 4
mov ebx, 0x1005409c
cmp dword [edi + 0x50], 4
sete byte [ebp - 0xd]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 5
call fcn.10001820
mov al, byte [ebp - 0xd]
test al, al
je 0x10011670
mov ecx, dword [edi + 0xa8]
test ecx, ecx
je 0x10011667
mov eax, dword [edi + 0x4c]
shr eax, 5
test al, 1
jne 0x10011667
cmp dword [ebp - 0x28], 0
cmovne ebx, dword [ebp - 0x34]
push ebx
push str.pathfrom
call fcn.10006870
cmp dword [edi + 0x68], 0
mov eax, 0x1005409c
je 0x10011641
mov eax, dword [edi + 0x5c]
mov ecx, dword [edi + 0xa8]
push eax
push str.pathto
call fcn.10006870
mov ecx, dword [edi + 0xa8]
push str.completed
push str.status
call fcn.10006870
mov dword [edi + 0x50], 5
jmp 0x10011686
cmp dword [ebp - 0x28], 0
mov dword [edi + 0x50], 7
cmovne ebx, dword [ebp - 0x34]
mov ecx, ebx
call fcn.10004b70
cmp dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
jl 0x100116b1
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x100116aa
push eax
call fcn.1003217f
add esp, 4
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
jl 0x100116e7
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x100116e7
push eax
call fcn.1003217f
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x50], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret