Function at 0x1003bdb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dddf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov eax, dword [0x1020ed34]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
jne 0x1003be07
mov ecx, dword [ebp - 0x14]
call fcn.101bc753
mov ebx, dword [ebp - 0x18]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x24]
mov edx, dword [edx]
test edx, edx
je 0x1003be23
mov edi, dword [eax + 0x34]
mov esi, dword [edi]
lea ecx, [edx + esi]
cmp edx, ecx
jb 0x1003c0a6
mov edx, dword [eax + 0x4c]
test edx, edx
je 0x1003c5e6
cmp dword [eax + 0x3c], 0
je 0x1003c5a9
mov byte [ebp - 0x28], bl
mov edx, 0xf
mov dword [ebp - 0x70], edx
xor eax, eax
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x84], al
lea eax, [ebp - 0x88]
mov dword [ebp - 0x5c], eax
cmp edx, 8
jb 0x1003c46a
cmp dword [eax + 0x18], 0x10
jb 0x1003be6b
mov eax, dword [eax + 4]
jmp 0x1003be6e
add eax, 4
pxor xmm0, xmm0
movq qword [eax], xmm0
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x18], 0x10
mov dword [eax + 0x14], 8
jb 0x1003be8b
mov eax, dword [eax + 4]
jmp 0x1003be8e
add eax, 4
mov dword [ebp - 4], 4
mov byte [eax + 8], 0
mov ecx, dword [ebp - 0x70]
cmp ecx, 0x10
jb 0x1003beaf
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x1003beb9
mov ebx, eax
jmp 0x1003bebe
lea eax, [ebp - 0x84]
mov ebx, eax
jmp 0x1003bebe
call fcn.101bd095
mov edx, dword [ebp - 0x74]
add ebx, edx
cmp eax, ebx
ja 0x1003beb9
lea ebx, [ebp - 0x88]
cmp ebx, 0xfffffffc
je 0x1003beeb
cmp ecx, 0x10
jb 0x1003bedf
mov ebx, dword [ebp - 0x84]
jmp 0x1003bee5
lea ebx, [ebp - 0x84]
add ebx, edx
cmp eax, ebx
jae 0x1003beb9
cmp ecx, 0x10
jb 0x1003befe
mov ebx, dword [ebp - 0x84]
test ebx, ebx
je 0x1003beb9
mov esi, ebx
jmp 0x1003bf0a
lea ebx, [ebp - 0x84]
lea esi, [ebp - 0x84]
add esi, edx
cmp ebx, esi
ja 0x1003beb9
lea esi, [ebp - 0x88]
cmp esi, 0xfffffffc
je 0x1003bf34
cmp ecx, 0x10
jb 0x1003bf28
mov ecx, dword [ebp - 0x84]
jmp 0x1003bf2e
lea ecx, [ebp - 0x84]
add ecx, edx
cmp ebx, ecx
jae 0x1003beb9
mov edi, dword [ebp - 0x24]
mov ecx, dword [edi + 0x3c]
mov esi, dword [ecx]
mov dword [ebp - 0x2c], esi
add edi, 0x44
lea esi, [ebp - 0x34]
add edx, ebx
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
push esi
lea eax, [ebp - 0x27]
push eax
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
push edx
push edi
call dword [eax + 0x14]
test eax, eax
jl 0x1003bff4
cmp eax, 1
jg 0x1003bff4
mov esi, dword [ebp - 0x70]
cmp esi, 0x10
jb 0x1003bf88
mov ecx, dword [ebp - 0x84]
test ecx, ecx
je 0x1003beb9
mov eax, ecx
jmp 0x1003bf94
lea ecx, [ebp - 0x84]
lea eax, [ebp - 0x84]
mov edx, dword [ebp - 0x74]
add eax, edx
cmp ecx, eax
ja 0x1003beb9
lea eax, [ebp - 0x88]
cmp eax, 0xfffffffc
je 0x1003bfc9
cmp esi, 0x10
jb 0x1003bfb9
mov eax, dword [ebp - 0x84]
jmp 0x1003bfbf
lea eax, [ebp - 0x84]
add eax, edx
cmp ecx, eax
jae 0x1003beb9
mov ebx, dword [ebp - 0x30]
sub ebx, ecx
jne 0x1003c386
mov esi, dword [ebp - 0x24]
mov byte [esi + 0x41], 1
lea eax, [ebp - 0x28]
cmp eax, dword [ebp - 0x34]
jne 0x1003c333
test ebx, ebx
je 0x1003c0e4
jmp 0x1003be99
cmp eax, 3
jne 0x1003c05d
movsx edx, byte [ebp - 0x28]
mov eax, dword [ebp - 0x24]
push dword [eax + 0x4c]
push edx
call fcn.101bd58c
add esp, 8
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
cmp ebx, 0xffffffff
cmovne ebx, eax
cmp dword [ebp - 0x70], 0x10
jae 0x1003c448
mov dword [ebp - 0x70], 0xf
xor eax, eax
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x84], al
mov ecx, dword [ebp - 0x14]
call fcn.101bc753
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov eax, ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x70], 0x10
jae 0x1003c459
mov dword [ebp - 0x70], 0xf
xor eax, eax
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x84], al
mov ecx, dword [ebp - 0x14]
call fcn.101bc753
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
dec esi
mov dword [edi], esi
mov edx, dword [eax + 0x24]
mov esi, dword [edx]
lea eax, [esi + 1]
mov dword [edx], eax
mov byte [esi], bl
mov ecx, dword [ebp - 0x14]
call fcn.101bc753
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov eax, ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x74], 0x20
jae 0x1003c2e0
lea edx, [ebp - 0x88]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x38], edx
mov ecx, eax
neg ecx
dec ecx
cmp ecx, 8
ja 0x1003c10f
call fcn.101b7fa2
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x14]
add eax, 8
mov dword [ebp - 0x40], eax
cmp eax, 0xfffffffe
jbe 0x1003c125
call fcn.101b7fa2
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x40]
mov ecx, dword [edx + 0x18]
cmp ecx, eax
jb 0x1003c18b
test eax, eax
je 0x1003c16f
test eax, eax
jbe 0x1003be99
cmp dword [edx + 0x18], 0x10
mov ecx, dword [edx + 0x14]
jb 0x1003c146
mov edx, dword [edx + 4]
jmp 0x1003c149
add edx, 4
pxor xmm0, xmm0
movq qword [edx + ecx], xmm0
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0x18], 0x10
mov dword [edx + 0x14], eax
jb 0x1003c163
mov edx, dword [edx + 4]
jmp 0x1003c166
add edx, 4
mov byte [edx + eax], 0
jmp 0x1003be99
mov dword [edx + 0x14], 0
cmp ecx, 0x10
jb 0x1003c180
mov edx, dword [edx + 4]
jmp 0x1003c183
add edx, 4
mov byte [edx], 0
jmp 0x1003be99
mov dword [ebp - 0x54], edx
mov edx, dword [edx + 0x14]
mov dword [ebp - 0x50], edx
mov ebx, eax
or ebx, 0xf
cmp ebx, 0xfffffffe
jbe 0x1003c1a5
mov dword [ebp - 0x5c], eax
mov ebx, eax
jmp 0x1003c1bd
mov esi, ecx
shr esi, 1
mov eax, 0xaaaaaaab
mul ebx
shr edx, 1
cmp esi, edx
ja 0x1003c2c6
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 4], 5
mov dword [ebp - 0x58], 0
inc ebx
jne 0x1003c1d2
xor ebx, ebx
jmp 0x1003c207
xor edx, edx
mov eax, 0xffffffff
div ebx
cmp eax, 1
jae 0x1003c207
mov dword [ebp - 0x60], 0
lea esi, [ebp - 0x6c]
mov ecx, esi
lea eax, [ebp - 0x60]
push eax
call fcn.101bbf71
mov dword [ebp - 0x6c], vtable.std::bad_alloc.0
push 0x1020a210
push esi
call fcn.101bc244
push eax
mov dword [esp], ebx
call fcn.101bc2ab
pop ecx
mov dword [ebp - 4], 4
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 4
mov edx, dword [ebp - 0x50]
test edx, edx
ja 0x1003c29b
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0x18], 0x10
jae 0x1003c28d
mov ebx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x50]
lea esi, [edx + 4]
xor eax, eax
mov byte [esi], al
mov dword [edx + 4], ebx
mov dword [edx + 0x18], ecx
mov dword [edx + 0x14], edi
cmp ecx, 0x10
cmovae esi, ebx
mov byte [esi + edi], al
mov eax, dword [ebp - 0x40]
jmp 0x1003c130
push dword [edx + 4]
call fcn.101bc082
pop ecx
mov edx, dword [ebp - 0x38]
jmp 0x1003c232
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x18], 0x10
jb 0x1003c2a9
mov eax, dword [eax + 4]
jmp 0x1003c2af
mov eax, dword [ebp - 0x54]
add eax, 4
mov ecx, dword [ebp - 0x5c]
push edx
push eax
inc ecx
push ecx
push dword [ebp - 0x58]
call fcn.101bc1c7
add esp, 0x10
jmp 0x1003c229
mov eax, esi
neg eax
add eax, 0xfffffffe
cmp ecx, eax
ja 0x1003c1ba
lea ebx, [ecx + esi]
mov dword [ebp - 0x5c], ebx
jmp 0x1003c1bd
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x70], 0x10
jae 0x1003c325
mov dword [ebp - 0x70], 0xf
xor eax, eax
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x84], al
mov ecx, dword [ebp - 0x14]
call fcn.101bc753
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push dword [ebp - 0x84]
call fcn.101bc082
pop ecx
jmp 0x1003c2ed
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x70], 0x10
jae 0x1003c378
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x70], 0xf
xor eax, eax
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x84], al
mov ecx, dword [ebp - 0x14]
call fcn.101bc753
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov eax, ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push dword [ebp - 0x84]
call fcn.101bc082
pop ecx
jmp 0x1003c340
cmp esi, 0x10
jb 0x1003c39d
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x1003beb9
mov edi, eax
jmp 0x1003c3a9
lea eax, [ebp - 0x84]
lea edi, [ebp - 0x84]
add edi, edx
cmp eax, edi
ja 0x1003beb9
lea ecx, [ebp - 0x88]
cmp ecx, 0xfffffffc
je 0x1003c3db
cmp esi, 0x10
jb 0x1003c3cb
mov ecx, dword [ebp - 0x84]
jmp 0x1003c3d1
lea ecx, [ebp - 0x84]
add edx, ecx
cmp eax, edx
jae 0x1003beb9
mov esi, dword [ebp - 0x24]
push dword [esi + 0x4c]
push ebx
push 1
push eax
call fcn.101bd7fa
add esp, 0x10
cmp ebx, eax
je 0x1003bfd7
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x70], 0x10
jae 0x1003c43a
mov dword [ebp - 0x70], 0xf
xor eax, eax
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x84], al
mov ecx, dword [ebp - 0x14]
call fcn.101bc753
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push dword [ebp - 0x84]
call fcn.101bc082
pop ecx
jmp 0x1003c402
push dword [ebp - 0x84]
call fcn.101bc082
pop ecx
jmp 0x1003c028
push dword [ebp - 0x84]
call fcn.101bc082
pop ecx
jmp 0x1003c06e
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x60], eax
mov ebx, edx
shr ebx, 1
cmp ebx, 5
ja 0x1003c590
mov dword [ebp - 0x6c], 0xf
mov ebx, edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x68], 0
inc ebx
jne 0x1003c49e
xor ebx, ebx
jmp 0x1003c4d3
xor edx, edx
mov eax, 0xffffffff
div ebx
cmp eax, 1
jae 0x1003c4d3
mov dword [ebp - 0x3c], 0
lea esi, [ebp - 0x4c]
mov ecx, esi
lea eax, [ebp - 0x3c]
push eax
call fcn.101bbf71
mov dword [ebp - 0x4c], vtable.std::bad_alloc.0
push 0x1020a210
push esi
call fcn.101bc244
push eax
mov dword [esp], ebx
call fcn.101bc2ab
pop ecx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x60]
test eax, eax
ja 0x1003c568
mov edi, dword [ebp - 0x64]
cmp dword [edi + 0x18], 0x10
jae 0x1003c55a
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x60]
lea ebx, [edi + 4]
xor eax, eax
mov byte [ebx], al
mov dword [edi + 4], ecx
mov dword [edi + 0x18], edx
mov dword [edi + 0x14], esi
cmp edx, 0x10
cmovae ebx, ecx
mov byte [ebx + esi], al
mov eax, dword [ebp - 0x5c]
jmp 0x1003be60
push dword [edi + 4]
call fcn.101bc082
pop ecx
mov edi, dword [ebp - 0x64]
jmp 0x1003c4fe
mov edx, dword [ebp - 0x64]
cmp dword [edx + 0x18], 0x10
jb 0x1003c576
mov edx, dword [edx + 4]
jmp 0x1003c579
add edx, 4
mov ecx, dword [ebp - 0x6c]
push eax
push edx
inc ecx
push ecx
push dword [ebp - 0x68]
call fcn.101bc1c7
add esp, 0x10
jmp 0x1003c4f5
mov eax, ebx
neg eax
add eax, 0xfffffffe
cmp edx, eax
ja 0x1003c480
add ebx, edx
mov dword [ebp - 0x6c], ebx
jmp 0x1003c489
push edx
mov eax, ebx
shl eax, 0x18
sar eax, 0x18
push eax
call fcn.101bd58c
add esp, 8
mov esi, eax
mov ecx, dword [ebp - 0x14]
cmp esi, 0xffffffff
cmovne esi, ebx
call fcn.101bc753
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x18]
mov eax, esi
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x14]
call fcn.101bc753
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4