Function at 0x1001dc80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x158
mov esi, esp
mov dword [esi + 0x140], ebp
mov edx, dword [ebp + 0x14]
lea eax, [esi + 0x148]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x10022de0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov edx, dword [edx + 0x1c]
lea ecx, [esi + 0x54]
mov dword [ecx], edx
lock inc dword [edx + 4]
mov dword [esi + 0x3c], edx
mov dword [esi + 0x14], edx
mov dword [eax + 8], 0
push 0x1005eda4
call fcn.1001f00e
mov dword [esi + 0x40], eax
mov edx, dword [ebp + 0x1c]
movzx eax, byte [edx + 0xb]
mov ecx, eax
test al, al
jns 0x1001dcf6
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x1001dd26
mov ecx, edx
test al, al
jns 0x1001dd02
mov ecx, dword [edx]
movzx eax, word [ecx]
mov word [esi], ax
mov edx, dword [esi + 0x40]
mov eax, dword [edx]
mov eax, dword [eax + 0x2c]
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x14], ecx
mov ecx, edx
push 0x2d
call eax
cmp word [esi], ax
sete al
mov dword [esi], eax
jmp 0x1001dd2c
mov dword [esi], 0
lea eax, [esi + 0x58]
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax], ecx
mov dword [eax + 8], ecx
lea edi, [esi + 0x28]
mov dword [edi + 4], ecx
mov dword [edi], ecx
mov dword [edi + 8], ecx
lea eax, [esi + 0x18]
mov dword [eax + 4], ecx
mov dword [eax], ecx
mov dword [eax + 8], ecx
xor ecx, ecx
dec ecx
lea edx, [esi + 0x50]
mov dword [edx], ecx
lea edx, [esi + 0xa]
mov word [edx], cx
lea edx, [esi + 8]
mov word [edx], cx
lea edx, [esi + 0x4c]
mov dword [edx], ecx
mov dword [esi + 0x150], 1
mov cl, byte [ebp + 0x10]
movzx ecx, cl
movzx edx, byte [esi]
mov dword [esi + 0x74], edx
lea ebx, [esi + 0x4c]
push ebx
push eax
push edi
lea eax, [esi + 0x58]
push eax
lea eax, [esi + 8]
push eax
lea eax, [esi + 0xa]
push eax
lea eax, [esi + 0x50]
push eax
lea eax, [esi + 0x54]
push eax
call fcn.1001d850
add esp, 0x20
lea edi, [esi + 0x78]
push 0xc8
push 0xff
push edi
call fcn.10027f80
add esp, 0xc
mov eax, dword [ebp + 0x1c]
movzx ebx, byte [eax + 0xb]
mov edx, ebx
test bl, bl
jns 0x1001ddc6
mov edx, dword [eax + 4]
mov ecx, dword [esi + 0x4c]
mov eax, edx
mov dword [esi], ecx
sub eax, ecx
mov dword [esi + 4], edx
jle 0x1001de04
movzx edx, byte [esi + 0x23]
mov ecx, edx
mov dword [esi + 0x38], edx
test dl, dl
jns 0x1001dde4
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0xc], ecx
movzx edx, byte [esi + 0x33]
mov ecx, edx
mov dword [esi + 0x34], edx
test dl, dl
jns 0x1001ddf7
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi]
lea eax, [edx + eax*2]
add eax, dword [esi + 0xc]
add ecx, eax
inc ecx
jmp 0x1001de2b
movzx ecx, byte [esi + 0x23]
mov eax, ecx
mov dword [esi + 0x38], ecx
test cl, cl
jns 0x1001de14
mov eax, dword [esi + 0x1c]
movzx edx, byte [esi + 0x33]
mov ecx, edx
mov dword [esi + 0x34], edx
test dl, dl
jns 0x1001de24
mov ecx, dword [esi + 0x2c]
add eax, dword [esi]
add ecx, eax
add ecx, 2
mov edx, dword [esi + 4]
xor eax, eax
cmp ecx, 0x65
jb 0x1001de4e
add ecx, ecx
push ecx
mov edi, edx
call fcn.10035a4c
mov edx, edi
add esp, 4
mov edi, eax
test eax, eax
je 0x1001df67
mov dword [esi + 0xc], edi
mov ecx, eax
xor eax, eax
dec eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x44], eax
movzx eax, word [esi + 8]
mov dword [esi + 0x70], eax
movzx eax, word [esi + 0xa]
mov dword [esi + 0x6c], eax
test bl, bl
jns 0x1001de78
mov edi, dword [ebp + 0x1c]
mov edi, dword [edi]
mov eax, dword [ebp + 0x14]
jmp 0x1001de7e
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x1c]
lea ebx, [edi + edx*2]
mov eax, dword [eax + 4]
mov dword [esi + 0x68], eax
mov dword [esi + 4], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x150], 2
lea edx, [esi + 0x48]
mov ecx, dword [esi + 0xc]
push dword [esi]
lea eax, [esi + 0x18]
push eax
lea eax, [esi + 0x28]
push eax
lea eax, [esi + 0x58]
push eax
push dword [esi + 0x70]
push dword [esi + 0x6c]
lea eax, [esi + 0x50]
push eax
push dword [esi + 0x74]
push dword [esi + 0x40]
push ebx
push edi
push dword [esi + 0x68]
lea eax, [esi + 0x44]
push eax
call fcn.1001d958
add esp, 0x34
movzx eax, word [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0x44]
mov edi, dword [esi + 4]
mov dword [esi + 0x10], edi
mov edi, dword [esi + 0x48]
movzx eax, ax
push eax
push dword [ebp + 0x14]
push edx
push edi
push dword [esi + 0xc]
push ecx
push dword [ebp + 8]
call fcn.10005fed
add esp, 0x1c
mov eax, dword [esi + 4]
test eax, eax
je 0x1001df07
push eax
call fcn.10035a4c
add esp, 4
cmp byte [esi + 0x38], 0
jns 0x1001df18
push dword [esi + 0x18]
call fcn.10024829
add esp, 4
cmp byte [esi + 0x34], 0
jns 0x1001df29
push dword [esi + 0x28]
call fcn.10024829
add esp, 4
cmp byte [esi + 0x63], 0
jns 0x1001df3a
push dword [esi + 0x58]
call fcn.10024829
add esp, 4
mov ecx, dword [esi + 0x3c]
xor eax, eax
dec eax
lock xadd dword [ecx + 4], eax
test eax, eax
jne 0x1001df4e
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 0x148]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
mov dword [esi + 0x10], eax
mov dword [esi + 0x150], 2
call fcn.10049b81
nop
push ebp
sub esp, 0x34
lea esi, [ebp - 0x154]
mov ebp, dword [esi + 0x140]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1001df9a
push eax
call fcn.10035a4c
add esp, 4
add esp, 0x34
pop ebp
ret