Function at 0x1003dd90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ddf80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
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 ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x3c], 0
je 0x1003ddd3
movzx eax, byte [ecx + 0x41]
test eax, eax
jne 0x1003ddee
mov ecx, dword [ebp - 0x14]
call fcn.101bc753
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
mov eax, dword [ecx]
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x1003de12
mov ecx, dword [ebp - 0x14]
call fcn.101bc753
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov edx, 0xf
mov dword [ebp - 0x64], edx
xor eax, eax
cmp edx, 8
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x78], al
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x50], eax
jb 0x1003e30b
cmp dword [eax + 0x18], 0x10
jb 0x1003de3c
mov eax, dword [eax + 4]
jmp 0x1003de3f
add eax, 4
pxor xmm0, xmm0
movq qword [eax], xmm0
mov eax, dword [ebp - 0x50]
cmp dword [eax + 0x18], 0x10
mov dword [eax + 0x14], 8
jb 0x1003de5c
mov eax, dword [eax + 4]
jmp 0x1003de5f
add eax, 4
mov dword [ebp - 4], 4
mov byte [eax + 8], 0
mov ecx, dword [ebp - 0x64]
cmp ecx, 0x10
jb 0x1003de7d
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x1003de84
mov ebx, eax
jmp 0x1003de89
lea eax, [ebp - 0x78]
mov ebx, eax
jmp 0x1003de89
call fcn.101bd095
mov edx, dword [ebp - 0x68]
add ebx, edx
cmp eax, ebx
ja 0x1003de84
lea ebx, [ebp - 0x7c]
cmp ebx, 0xfffffffc
je 0x1003dead
cmp ecx, 0x10
jb 0x1003dea4
mov ebx, dword [ebp - 0x78]
jmp 0x1003dea7
lea ebx, [ebp - 0x78]
add ebx, edx
cmp eax, ebx
jae 0x1003de84
cmp ecx, 0x10
jb 0x1003debd
mov ebx, dword [ebp - 0x78]
test ebx, ebx
je 0x1003de84
mov esi, ebx
jmp 0x1003dec3
lea ebx, [ebp - 0x78]
lea esi, [ebp - 0x78]
add esi, edx
cmp ebx, esi
ja 0x1003de84
lea esi, [ebp - 0x7c]
cmp esi, 0xfffffffc
je 0x1003dee4
cmp ecx, 0x10
jb 0x1003dedb
mov ecx, dword [ebp - 0x78]
jmp 0x1003dede
lea ecx, [ebp - 0x78]
add ecx, edx
cmp ebx, ecx
jae 0x1003de84
mov edi, dword [ebp - 0x24]
mov ecx, dword [edi + 0x3c]
mov esi, dword [ecx]
add edi, 0x44
add edx, ebx
lea ebx, [ebp - 0x28]
push ebx
push edx
push eax
push edi
call dword [esi + 0x18]
test eax, eax
je 0x1003df96
cmp eax, 1
je 0x1003df9d
cmp eax, 3
jne 0x1003df55
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x64], 0x10
jae 0x1003e1ff
mov dword [ebp - 0x64], 0xf
xor eax, eax
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x78], 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, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x64], 0x10
jae 0x1003e20d
mov dword [ebp - 0x64], 0xf
xor eax, eax
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x78], al
mov ecx, dword [ebp - 0x14]
call fcn.101bc753
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x24]
mov byte [eax + 0x41], 0
mov esi, dword [ebp - 0x64]
cmp esi, 0x10
jb 0x1003dfb4
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x1003de84
mov eax, ecx
jmp 0x1003dfb9
lea ecx, [ebp - 0x78]
mov eax, ecx
mov edx, dword [ebp - 0x68]
add eax, edx
cmp ecx, eax
ja 0x1003de84
lea eax, [ebp - 0x7c]
cmp eax, 0xfffffffc
je 0x1003dfe5
cmp esi, 0x10
jb 0x1003dfd8
mov eax, dword [ebp - 0x78]
jmp 0x1003dfdb
lea eax, [ebp - 0x78]
add eax, edx
cmp ecx, eax
jae 0x1003de84
mov ebx, dword [ebp - 0x28]
sub ebx, ecx
jne 0x1003e266
mov esi, dword [ebp - 0x24]
movzx eax, byte [esi + 0x41]
test eax, eax
je 0x1003e21b
test ebx, ebx
jne 0x1003de6a
lea edx, [ebp - 0x7c]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x2c], edx
mov ecx, eax
neg ecx
dec ecx
cmp ecx, 8
ja 0x1003e025
call fcn.101b7fa2
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x14]
add eax, 8
mov dword [ebp - 0x30], eax
cmp eax, 0xfffffffe
jbe 0x1003e03b
call fcn.101b7fa2
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov ecx, dword [edx + 0x18]
cmp ecx, eax
jb 0x1003e0aa
test eax, eax
je 0x1003e08e
test eax, eax
jbe 0x1003de6a
cmp dword [edx + 0x18], 0x10
mov ecx, dword [edx + 0x14]
jb 0x1003e05c
mov edx, dword [edx + 4]
jmp 0x1003e05f
add edx, 4
pxor xmm0, xmm0
movq qword [edx + ecx], xmm0
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x18], 0x10
mov dword [edx + 0x14], eax
jb 0x1003e079
mov edx, dword [edx + 4]
jmp 0x1003e07c
add edx, 4
mov byte [edx + eax], 0
jmp 0x1003de6a
mov dword [edx + 0x14], 0
cmp ecx, 0x10
jb 0x1003e09f
mov edx, dword [edx + 4]
jmp 0x1003e0a2
add edx, 4
mov byte [edx], 0
jmp 0x1003de6a
mov dword [ebp - 0x48], edx
mov edx, dword [edx + 0x14]
mov dword [ebp - 0x44], edx
mov ebx, eax
or ebx, 0xf
cmp ebx, 0xfffffffe
jbe 0x1003e0c4
mov dword [ebp - 0x50], eax
mov ebx, eax
jmp 0x1003e0dc
mov esi, ecx
shr esi, 1
mov eax, 0xaaaaaaab
mul ebx
shr edx, 1
cmp esi, edx
ja 0x1003e1e5
mov dword [ebp - 0x50], ebx
mov dword [ebp - 4], 5
mov dword [ebp - 0x4c], 0
inc ebx
jne 0x1003e0f1
xor ebx, ebx
jmp 0x1003e126
xor edx, edx
mov eax, 0xffffffff
div ebx
cmp eax, 1
jae 0x1003e126
mov dword [ebp - 0x54], 0
lea esi, [ebp - 0x60]
mov ecx, esi
lea eax, [ebp - 0x54]
push eax
call fcn.101bbf71
mov dword [ebp - 0x60], 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 - 0x4c], eax
mov dword [ebp - 4], 4
mov edx, dword [ebp - 0x44]
test edx, edx
ja 0x1003e1ba
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x18], 0x10
jae 0x1003e1ac
mov ebx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
mov edi, dword [ebp - 0x44]
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 - 0x30]
jmp 0x1003e046
push dword [edx + 4]
call fcn.101bc082
pop ecx
mov edx, dword [ebp - 0x2c]
jmp 0x1003e151
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x18], 0x10
jb 0x1003e1c8
mov eax, dword [eax + 4]
jmp 0x1003e1ce
mov eax, dword [ebp - 0x48]
add eax, 4
mov ecx, dword [ebp - 0x50]
push edx
push eax
inc ecx
push ecx
push dword [ebp - 0x4c]
call fcn.101bc1c7
add esp, 0x10
jmp 0x1003e148
mov eax, esi
neg eax
add eax, 0xfffffffe
cmp ecx, eax
ja 0x1003e0d9
lea ebx, [ecx + esi]
mov dword [ebp - 0x50], ebx
jmp 0x1003e0dc
push dword [ebp - 0x78]
call fcn.101bc082
pop ecx
jmp 0x1003df22
push dword [ebp - 0x78]
call fcn.101bc082
pop ecx
jmp 0x1003df66
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x64], 0x10
jae 0x1003e25b
mov dword [ebp - 0x64], 0xf
xor eax, eax
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x78], 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, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x78]
call fcn.101bc082
pop ecx
jmp 0x1003e228
cmp esi, 0x10
jb 0x1003e27a
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x1003de84
mov edi, eax
jmp 0x1003e280
lea eax, [ebp - 0x78]
lea edi, [ebp - 0x78]
add edi, edx
cmp eax, edi
ja 0x1003de84
lea ecx, [ebp - 0x7c]
cmp ecx, 0xfffffffc
je 0x1003e2a9
cmp esi, 0x10
jb 0x1003e29c
mov ecx, dword [ebp - 0x78]
jmp 0x1003e29f
lea ecx, [ebp - 0x78]
add edx, ecx
cmp eax, edx
jae 0x1003de84
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 0x1003dff3
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x64], 0x10
jae 0x1003e300
mov dword [ebp - 0x64], 0xf
xor eax, eax
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x78], al
mov ecx, dword [ebp - 0x14]
call fcn.101bc753
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x78]
call fcn.101bc082
pop ecx
jmp 0x1003e2d0
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x54], eax
mov ebx, edx
shr ebx, 1
cmp ebx, 5
ja 0x1003e431
mov dword [ebp - 0x60], 0xf
mov ebx, edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x5c], 0
inc ebx
jne 0x1003e33f
xor ebx, ebx
jmp 0x1003e374
xor edx, edx
mov eax, 0xffffffff
div ebx
cmp eax, 1
jae 0x1003e374
mov dword [ebp - 0x34], 0
lea esi, [ebp - 0x40]
mov ecx, esi
lea eax, [ebp - 0x34]
push eax
call fcn.101bbf71
mov dword [ebp - 0x40], 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 - 0x5c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x54]
test eax, eax
ja 0x1003e409
mov edi, dword [ebp - 0x58]
cmp dword [edi + 0x18], 0x10
jae 0x1003e3fb
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x60]
mov esi, dword [ebp - 0x54]
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 - 0x50]
jmp 0x1003de31
push dword [edi + 4]
call fcn.101bc082
pop ecx
mov edi, dword [ebp - 0x58]
jmp 0x1003e39f
mov edx, dword [ebp - 0x58]
cmp dword [edx + 0x18], 0x10
jb 0x1003e417
mov edx, dword [edx + 4]
jmp 0x1003e41a
add edx, 4
mov ecx, dword [ebp - 0x60]
push eax
push edx
inc ecx
push ecx
push dword [ebp - 0x5c]
call fcn.101bc1c7
add esp, 0x10
jmp 0x1003e396
mov eax, ebx
neg eax
add eax, 0xfffffffe
cmp edx, eax
ja 0x1003e321
add ebx, edx
mov dword [ebp - 0x60], ebx
jmp 0x1003e32a