Function at 0x100326e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100886e4
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x101722a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0x20]
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push ebx
push ebx
push ebx
push 0xff02
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 0x39], bl
call fcn.10070af0
mov edx, dword [ebp + 8]
mov dword [ebp - 0x48], eax
test edx, edx
je 0x10032753
cmp dword [edx + 0xc], ebx
je 0x10032753
mov ecx, 1
mov eax, ecx
lock xadd dword [edi], eax
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
inc ecx
mov eax, dword [edx + 0xc]
mov dword [edi + 4], eax
mov edx, dword [ebp + 0x10]
test edx, edx
jne 0x10032765
mov eax, dword [edi + 4]
add eax, 0x10
mov dword [ebp - 0x4c], eax
jmp 0x1003277f
cmp dword [ebp + 0xc], 1
jne 0x1003277a
mov ecx, dword [edi + 4]
mov eax, dword [edx]
cmp eax, dword [ecx + 0x10]
jne 0x1003277a
mov dword [ebp - 0x4c], edx
jmp 0x1003277f
mov ebx, 0xffffffdf
cmp dword [ebp - 0x44], 0
je 0x10032ad6
cmp dword [ebp + 0x1c], 0
je 0x10032ad6
mov eax, dword [edi + 0x48]
cmp eax, 0xfffffffd
je 0x10032acf
cmp eax, 0xffffffff
je 0x1003281c
test eax, eax
jne 0x10032937
mov ecx, dword [edi + 0x2ec]
call fcn.10036400
test eax, eax
jne 0x100327ca
lea ebx, [eax - 0x3b]
mov dword [edi + 0x48], 0xfffffffe
jmp 0x10032adb
test esi, esi
jne 0x100327d3
cmp dword [edi + 0x18], esi
jmp 0x10032807
mov eax, dword [edi + 0x18]
test eax, eax
je 0x1003280d
mov ecx, esi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10032800
test dl, dl
je 0x100327fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10032800
add eax, 2
add ecx, 2
test dl, dl
jne 0x100327e0
xor eax, eax
jmp 0x10032805
sbb eax, eax
or eax, 1
test eax, eax
je 0x10032937
mov ecx, dword [edi + 0x2e8]
test ecx, ecx
je 0x1003281c
call fcn.10035a30
mov dword [edi + 0x48], 0xfffffffd
test ebx, ebx
jne 0x10032adb
test esi, esi
je 0x1003284f
push str.create_library
push esi
call fcn.10072a90
add esp, 8
test eax, eax
je 0x1003284f
push esi
mov ecx, edi
mov byte [ebp - 0x39], 1
call fcn.10033280
jmp 0x10032857
push esi
mov ecx, edi
call fcn.10033090
mov ebx, eax
test ebx, ebx
jne 0x10032adb
push dword [ebp + 0x18]
mov ecx, edi
push esi
call fcn.10033cc0
mov ecx, edi
call fcn.10034990
push dword [ebp + 0x1c]
mov ecx, edi
push dword [ebp - 0x44]
call fcn.10034e50
cmp dword [ebp - 0x48], ebx
je 0x10032ac8
lea ecx, [ebp - 0x38]
call fcn.100356b0
mov dword [ebp - 4], ebx
xor esi, esi
mov dword [ebp - 0x40], esi
cmp dword [ebp + 0x1c], esi
jbe 0x10032928
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x10032913
mov esi, dword [eax + 8]
test esi, esi
je 0x10032910
cmp dword [esi + 0xcc], 1
jne 0x10032910
cmp dword [esi + 0x48], 0
jne 0x10032923
push 0x1008e3e8
lea ecx, [ebp - 0x30]
call fcn.10024920
mov ecx, esi
call fcn.10035fb0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0
mov ecx, dword [esi + 0x60]
mov dword [ebp - 0x18], ecx
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x14], eax
test ecx, ecx
mov eax, 0xffffffd4
cmove ebx, eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x48]
call fcn.100709c0
mov esi, dword [ebp - 0x40]
test eax, eax
je 0x10032918
mov ebx, 0xfffffffa
jmp 0x10032918
mov esi, dword [ebp - 0x40]
mov ebx, 0xffffffd4
inc esi
mov dword [ebp - 0x40], esi
cmp esi, dword [ebp + 0x1c]
jb 0x100328a2
jmp 0x10032928
mov ebx, 0xffffffc5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.100358a0
test ebx, ebx
jne 0x10032adb
mov eax, dword [ebp - 0x4c]
and eax, 0xffff000a
or eax, 0xa
movzx esi, ax
cmp byte [ebp - 0x39], bl
je 0x1003296e
mov edx, dword [edi + 0x18]
mov dword [edi + 0x4c], 2
mov dword [ebp - 0x44], 2
or esi, 0x90000
mov dword [ebp - 0x40], edx
jmp 0x10032988
mov eax, dword [edi + 0x20]
mov dword [edi + 0x4c], 4
mov dword [ebp - 0x44], 3
or esi, 0x80000
mov dword [ebp - 0x40], eax
mov ecx, dword [edi + 0x80]
lea eax, [edi + 0x80]
test ecx, ecx
je 0x100329b7
push ecx
call fcn.100728d0
lea eax, [edi + 0x80]
add esp, 4
mov dword [eax], 0
mov dword [edi + 0x84], 0
lea ecx, [edi + 0x84]
push ecx
push eax
push dword [ebp - 0x48]
call fcn.10070cf0
test eax, eax
lea eax, [edi + 0x84]
jne 0x100329f5
mov ecx, dword [eax]
test ecx, ecx
je 0x100329f5
push 0x1017b642
push ecx
call fcn.100728c7
lea ecx, [edi + 0x80]
add esp, 8
mov dword [ecx], eax
lea eax, [edi + 0x84]
jmp 0x100329fb
lea ecx, [edi + 0x80]
cmp dword [eax], 0
je 0x10032ac8
cmp dword [ecx], 0
je 0x10032ac8
push eax
push ecx
push dword [ebp - 0x48]
call fcn.10070cf0
test eax, eax
jne 0x10032ac8
mov eax, dword [edi + 0x80]
mov ecx, dword [ebp + 0x24]
mov dword [edi + 0xa0], eax
mov eax, dword [edi + 0x84]
mov dword [edi + 0xa4], eax
mov eax, dword [ebp - 0x44]
mov dword [edi + 0x94], eax
mov eax, dword [ebp + 8]
lea edx, [edi + 0x94]
mov dword [edi + 0x9c], eax
mov eax, dword [edi + 8]
mov dword [edi + 0xa8], eax
mov eax, dword [ebp - 0x4c]
mov dword [edi + 0xac], eax
mov eax, dword [ebp + 0x28]
mov dword [edi + 0xbc], eax
mov eax, dword [ebp - 0x40]
mov dword [edi + 0xb0], eax
mov eax, dword [edi + 0x28]
mov dword [edi + 0xcc], 1
mov dword [edi + 0x98], esi
mov dword [edi + 0xb8], ecx
mov dword [edi + 0xb4], eax
test ecx, ecx
je 0x10032aba
push 0
push 0
push edx
push fcn.10039560
push 0x1000
push 0
call fcn.10072cf3
add esp, 0x18
mov dword [edi + 0x90], eax
jmp 0x10032ae2
push edx
call fcn.10039560
mov ebx, eax
test ebx, ebx
je 0x10032ae2
jmp 0x10032adb
mov ebx, 0xfffffffa
jmp 0x10032adb
mov ebx, 0xffffffc5
jmp 0x10032adb
mov ebx, 0xffffffd4
mov dword [edi + 0x48], 0xfffffffe
lea eax, [ebp - 0x48]
push eax
call fcn.10070ba0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10071c54
mov esp, ebp
pop ebp
ret 0x24