Function at 0x10039910
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ac848
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x100df0c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov ebx, dword [ebp + 8]
add ebx, 0x30
mov byte [edi + 2], 1
mov ecx, ebx
call fcn.10036dc0
mov esi, dword [ebp + 0xc]
mov ecx, edi
push 1
mov dword [esi], eax
mov dword [esi + 4], edx
call fcn.10036ea0
mov esi, dword [ebp + 8]
cmp dword [esi + 0x58], 0
jbe 0x10039b8d
push 4
mov ecx, edi
call fcn.10036ea0
lea eax, [esi + 0x3c]
mov ecx, edi
push eax
push ebx
push 0
push 0
call fcn.1003a010
lea eax, [esi + 0x54]
mov ecx, edi
push esi
push eax
call fcn.1003a420
xor eax, eax
xor edx, edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], eax
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x2c], eax
xor ecx, ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], ecx
cmp dword [esi + 0x64], ecx
jbe 0x10039b4e
mov dword [ebp - 0x18], ecx
mov edi, edi
mov ebx, dword [esi + 0x60]
add ebx, ecx
mov dword [ebp - 0x28], ebx
cmp byte [ebx + 0xc], 0
je 0x10039b38
mov ecx, dword [ebx]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x30]
cmp ecx, eax
jne 0x10039a6b
mov edx, dword [ebp + 0xc]
cmp edx, 0x7fffffff
jae 0x10039bd7
mov eax, edx
mov ecx, SysReAllocString
sub ecx, edx
shr eax, 2
inc eax
cmp eax, ecx
cmova eax, ecx
xor ecx, ecx
add edx, eax
mov dword [ebp + 0xc], edx
mov eax, edx
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1009cfe4
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x10039a51
shl eax, 3
push eax
push dword [ebp - 0x34]
push ecx
call fcn.1009b860
add esp, 0xc
push dword [ebp - 0x34]
call fcn.1009cfdf
mov edx, dword [ebp - 0x10]
add esp, 4
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x2c], eax
mov eax, ecx
inc ecx
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x20]
mov dword [edx + eax*8], ecx
mov ecx, dword [ebp - 0x24]
mov dword [edx + eax*8 + 4], ecx
lea ecx, [ebp - 0x58]
mov bl, byte [ebx + 0xe]
call fcn.100368a0
mov eax, dword [ebp - 0x54]
mov ecx, eax
mov edx, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x58]
mov byte [eax + ecx], bl
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x48]
mov eax, dword [eax + 8]
mov dword [ebp - 0x24], eax
cmp ebx, edx
jne 0x10039b1d
cmp edx, 0x7fffffff
jae 0x10039bd7
mov eax, edx
mov ecx, SysReAllocString
sub ecx, edx
shr eax, 2
inc eax
cmp eax, ecx
cmova eax, ecx
xor ecx, ecx
add eax, edx
mov edx, 4
mov dword [ebp - 0x28], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1009cfe4
mov edx, dword [ebp - 0x4c]
add esp, 4
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x10039b06
lea ecx, [ebx*4]
push ecx
push edx
push eax
call fcn.1009b860
mov edx, dword [ebp - 0x4c]
add esp, 0xc
push edx
call fcn.1009cfdf
mov ecx, dword [ebp - 0x10]
add esp, 4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x44], eax
jmp 0x10039b23
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x24]
mov eax, ebx
inc ebx
mov dword [ebp - 0x48], ebx
mov dword [ecx + eax*4], edx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
add ecx, 0x10
inc ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ebx
cmp ebx, dword [esi + 0x64]
jb 0x100399d0
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [esi + 0x54]
push eax
call fcn.1003a150
push 0
mov ecx, edi
call fcn.10036ea0
push dword [ebp - 0x10]
call fcn.1009cfdf
push dword [ebp - 0x58]
call fcn.1009cfdf
push dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.1009cfdf
add esp, 0xc
cmp dword [esi + 0x64], 0
mov ecx, edi
je 0x10039e90
push 5
call fcn.10036ea0
push 0
push dword [esi + 0x64]
mov ecx, edi
call fcn.10039f60
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x44], 0
mov ebx, dword [esi + 0x64]
mov dword [ebp - 4], 2
mov dword [ebp - 0x48], 0
test ebx, ebx
je 0x10039c10
cmp ebx, 0x7fffffff
jbe 0x10039bec
mov dword [ebp + 8], 0x7e5
push 0x100c43f4
lea eax, [ebp + 8]
push eax
call fcn.1009cfed
push 0
call fcn.1009cfdf
push ebx
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x44], 0
call fcn.1009cfe4
add esp, 8
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
xor ecx, ecx
xor ebx, ebx
cmp dword [esi + 0x64], ecx
jbe 0x10039daa
mov edi, dword [ebp - 0x4c]
xor edx, edx
mov eax, dword [esi + 0x60]
cmp byte [edx + eax + 0xc], 0
je 0x10039c35
mov byte [edi + ecx], 0
jmp 0x10039c3a
mov byte [edi + ecx], 1
inc ebx
inc ecx
add edx, 0x10
cmp ecx, dword [esi + 0x64]
jb 0x10039c25
mov edi, dword [ebp - 0x1c]
test ebx, ebx
je 0x10039daa
lea eax, [ebp - 0x4c]
mov ecx, edi
push eax
push 0xe
call fcn.1003a090
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], 0
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x3c], eax
test ebx, ebx
je 0x10039cb0
cmp ebx, 0x7fffffff
ja 0x10039bd7
push eax
call fcn.1009cfdf
push ebx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], 0
call fcn.1009cfe4
add esp, 8
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], ebx
xor eax, eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x30], 0
test ebx, ebx
je 0x10039cee
cmp ebx, 0x7fffffff
ja 0x10039bd7
push 0
call fcn.1009cfdf
push ebx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0
call fcn.1009cfe4
add esp, 8
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
xor cl, cl
xor ebx, ebx
mov dword [ebp - 0x10], ecx
mov byte [ebp + 0xf], cl
cmp dword [esi + 0x64], ebx
jbe 0x10039d99
mov ecx, dword [ebp - 0x40]
mov edx, eax
xor eax, eax
sub ecx, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
mov edi, ecx
mov ecx, dword [esi + 0x60]
add ecx, eax
cmp byte [ecx + 0xc], 0
jne 0x10039d5f
cmp byte [ecx + 0xd], 0
sete al
mov byte [edi + edx], al
mov eax, dword [ebp - 0x10]
cmp byte [ecx + 0xd], 0
mov ecx, 1
movzx eax, al
cmove eax, ecx
mov dword [ebp - 0x10], eax
cmp ebx, dword [esi + 0xf4]
jae 0x10039d58
mov eax, dword [esi + 0xf0]
cmp byte [ebx + eax], 0
je 0x10039d58
mov byte [edx], cl
mov byte [ebp + 0xf], cl
jmp 0x10039d5b
mov byte [edx], 0
mov eax, dword [ebp - 0x18]
inc edx
inc ebx
add eax, 0x10
mov dword [ebp - 0x18], eax
cmp ebx, dword [esi + 0x64]
jb 0x10039d13
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
test cl, cl
je 0x10039d82
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
push 0xf
call fcn.1003a090
mov cl, byte [ebp + 0xf]
test cl, cl
je 0x10039d96
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
push 0x10
call fcn.1003a090
mov eax, dword [ebp - 0x34]
push eax
call fcn.1009cfdf
push dword [ebp - 0x40]
call fcn.1009cfdf
add esp, 8
push dword [ebp - 0x4c]
mov dword [ebp - 4], 0xffffffff
call fcn.1009cfdf
mov eax, dword [esi + 0x64]
add esp, 4
xor edx, edx
test eax, eax
je 0x10039e1f
mov ecx, dword [esi + 0x6c]
mov ebx, eax
lea ebx, [ebx]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
add edx, dword [eax + 4]
dec ebx
jne 0x10039dd0
test edx, edx
je 0x10039e1f
mov eax, dword [esi + 0x64]
add eax, edx
push 4
push 0
lea ebx, [eax*2 + 1]
push ebx
call fcn.10036670
add eax, 2
mov ecx, edi
push eax
call fcn.10036d50
push 0x11
mov ecx, edi
call fcn.10036ea0
push 0
push ebx
mov ecx, edi
call fcn.10039f60
cmp byte [edi], 0
je 0x10039eab
add dword [edi + 4], ebx
push 0x12
lea eax, [esi + 0x78]
mov ecx, edi
push eax
call fcn.1003a600
push 0x13
lea eax, [esi + 0x90]
mov ecx, edi
push eax
call fcn.1003a600
push 0x14
lea eax, [esi + 0xa8]
mov ecx, edi
push eax
call fcn.1003a600
push 0x18
lea eax, [esi + 0xc0]
mov ecx, edi
push eax
call fcn.1003a600
add esi, 0xd8
mov ecx, esi
call fcn.10030ff0
mov ebx, eax
test ebx, ebx
je 0x10039e85
push 2
push 0x15
push ebx
push esi
mov ecx, edi
call fcn.10036e00
push ebx
push esi
mov ecx, edi
call fcn.1003a560
push 0
mov ecx, edi
call fcn.10036ea0
mov ecx, edi
push 0
call fcn.10036ea0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
mov ecx, edi
call fcn.10036ea0
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
cmp dword [esi + 0x64], ecx
jbe 0x10039e1f
mov eax, dword [esi + 0x6c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
inc ecx
add ecx, ecx
cmp byte [edi + 1], 0
mov dword [ebp + 0xc], ecx
lea ebx, [ecx + eax]
mov dword [ebp - 0x28], ebx
je 0x10039f10
mov esi, ebx
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
movzx ebx, word [eax]
add eax, 2
mov byte [edx + ecx], bl
lea ecx, [edx + 1]
mov dword [edi + 0x1c], ecx
mov edx, ecx
mov ecx, dword [edi + 0x18]
shr ebx, 8
mov byte [edx + ecx], bl
lea ecx, [edx + 1]
mov dword [edi + 0x1c], ecx
cmp eax, esi
jne 0x10039ee1
mov esi, dword [ebp + 8]
jmp 0x10039f36
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
sub ecx, edx
cmp dword [ebp + 0xc], ecx
ja 0x10039f47
mov ecx, dword [ebp + 0xc]
add ecx, edx
mov dword [edi + 8], ecx
movzx ecx, word [eax]
lea edx, [edx + 2]
add eax, 2
mov word [edx - 2], cx
cmp eax, ebx
jne 0x10039f25
mov ecx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, dword [esi + 0x64]
jb 0x10039ec2
jmp 0x10039e1f
mov dword [ebp + 8], 1
jmp 0x10039bde