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

Disassembly:
push 0xffffffffffffffff
push 0x1006cae4
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x1008b2d0]
xor eax, esp
mov dword [esp + 0xf0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1008b2d0]
xor eax, esp
push eax
lea eax, [esp + 0x108]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x118]
mov eax, dword [esp + 0x120]
mov esi, dword [esp + 0x11c]
xor ebp, ebp
mov edi, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
cmp ebx, ebp
je 0x1003db57
push 0xffffffffffffffff
xor ecx, ecx
push ebp
lea edx, [edi + 0x5c]
mov word [esp + 0xa4], cx
push edx
lea ecx, [esp + 0xa8]
mov dword [esp + 0xbc], 7
mov dword [esp + 0xb8], ebp
call fcn.1001854a
xor eax, eax
mov dword [esp + 0x110], ebp
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], ebp
mov word [esp + 0x80], ax
mov byte [esp + 0x110], 1
cmp ebx, 1
jne 0x1003d762
lea ecx, [esp + 0x64]
push esi
push ecx
call fcn.10035be0
add esp, 8
push eax
lea ecx, [esp + 0x84]
mov byte [esp + 0x114], 2
call fcn.1001e3d7
cmp dword [esp + 0x78], 8
mov byte [esp + 0x110], bl
jb 0x1003d6ad
mov edx, dword [esp + 0x64]
push edx
call fcn.1004dca6
add esp, 4
lea eax, [esp + 0x64]
push eax
mov ecx, esi
call fcn.100444b0
cmp dword [eax + 0x10], ebp
setne bl
cmp dword [esp + 0x78], 8
jb 0x1003d6d3
mov ecx, dword [esp + 0x64]
push ecx
call fcn.1004dca6
add esp, 4
test bl, bl
je 0x1003d766
lea edx, [esp + 0xe8]
push edx
mov ecx, esi
call fcn.100444b0
push eax
lea eax, [esp + 0x68]
push eax
mov ecx, edi
mov byte [esp + 0x118], 3
call fcn.10033740
push eax
lea ecx, [esp + 0xa0]
mov byte [esp + 0x114], 4
call fcn.1001e3d7
mov esi, 8
cmp dword [esp + 0x78], esi
jb 0x1003d72c
mov ecx, dword [esp + 0x64]
push ecx
call fcn.1004dca6
add esp, 4
xor edx, edx
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], ebp
mov word [esp + 0x64], dx
mov byte [esp + 0x110], 1
cmp dword [esp + 0xfc], esi
jb 0x1003d766
mov eax, dword [esp + 0xe8]
push eax
call fcn.1004dca6
add esp, 4
jmp 0x1003d766
mov dword [esp + 0x2c], ebp
push ebp
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.10046c40
mov eax, dword [esp + 0x3c]
add esp, 0xc
cmp eax, ebp
je 0x1003db04
mov ebx, 1
cmp eax, ebx
je 0x1003db04
push ebp
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.10046c40
add esp, 0xc
cmp dword [esp + 0x30], 3
jne 0x1003db04
lea ecx, [edi + 0x1c]
mov dword [esp + 0x48], ecx
call fcn.100026a0
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x110], 5
cmp eax, ebp
je 0x1003d7d4
mov dword [eax], ebp
push 0x38
mov dword [esp + 0x40], ebp
call fcn.1004dfb5
add esp, 4
cmp eax, ebp
je 0x1003db89
mov dword [eax], eax
mov dword [esp + 0x38], eax
mov dword [eax + 4], eax
lea edx, [esp + 0x9c]
push edx
lea ecx, [esp + 0x34]
mov byte [esp + 0x114], 6
call fcn.10038ce0
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov byte [esp + 0x110], 8
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov eax, dword [esp + 0x30]
cmp eax, ebp
je 0x1003d9f7
cmp dword [eax + 0x2c], ebp
je 0x1003d9f7
mov dword [esp + 0xdc], 7
lea edx, [esp + 0xc8]
push edx
xor ecx, ecx
push eax
mov byte [esp + 0x118], 9
mov dword [esp + 0xe0], ebp
mov word [esp + 0xd0], cx
call fcn.100457e0
push ebp
lea eax, [esp + 0xd4]
push eax
lea ecx, [esp + 0x60]
push ecx
call fcn.10046c40
add esp, 0x14
cmp dword [esp + 0x50], 2
jne 0x1003d9bd
mov esi, dword [edi + 0x78]
mov edx, dword [esi]
lea ecx, [esp + 0xc8]
push ecx
mov eax, 0x10032330
push eax
push esi
push edx
lea edx, [esp + 0x70]
push edx
call fcn.100355f0
add esp, 0x14
cmp dword [eax], esi
jne 0x1003d9bd
mov dword [esp + 0x44], ebp
mov byte [esp + 0x17], 0
cmp dword [esp + 0x118], ebx
jne 0x1003d90c
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0xec]
push ecx
call fcn.10035be0
or dword [esp + 0x20], ebx
lea edx, [esp + 0x1f]
push edx
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x90]
push edx
push eax
mov byte [esp + 0x128], 0xa
call fcn.100379b0
add esp, 0x18
test al, al
jne 0x1003d90c
xor bl, bl
jmp 0x1003d90e
mov bl, 1
test byte [esp + 0x18], 1
mov dword [esp + 0x110], 9
je 0x1003d931
and dword [esp + 0x18], 0xfffffffe
lea ecx, [esp + 0xe8]
call fcn.100035ae
test bl, bl
je 0x1003d9bb
lea eax, [esp + 0xc8]
push 0
push eax
call fcn.10046860
add dword [esp + 0x2c], eax
lea ecx, [esp + 0xd0]
push 0
adc dword [esp + 0x34], edx
push ecx
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], edx
call fcn.10046910
mov dword [esp + 0xd4], edx
add esp, 0x10
lea edx, [esp + 0xb8]
push edx
lea ecx, [esp + 0x3c]
mov dword [esp + 0xc4], eax
call fcn.1003add0
add dword [esp + 0x1c], 1
adc dword [esp + 0x20], 0
cmp byte [esp + 0x17], 0
je 0x1003d9bb
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1003d9bb
mov ecx, dword [esp + 0x44]
mov edx, ecx
sub edx, dword [eax]
cmp edx, 0x80000000
jae 0x1003d9bb
inc ecx
mov dword [eax], ecx
xor ebp, ebp
cmp dword [esp + 0xdc], 8
mov byte [esp + 0x110], 8
jb 0x1003d9df
mov eax, dword [esp + 0xc8]
push eax
call fcn.1004dca6
add esp, 4
lea ecx, [esp + 0x30]
push ebp
push ecx
call fcn.10047050
add esp, 8
mov ebx, 1
jmp 0x1003d824
mov esi, dword [edi + 0x78]
lea ebp, [edi + 0x78]
lea edx, [esp + 0x38]
cmp ebp, edx
je 0x1003da30
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x1003da30
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
push edx
push eax
push ecx
lea eax, [esp + 0x44]
push eax
push esi
mov ecx, ebp
call fcn.10033ac0
jmp 0x1003da30
mov ecx, dword [esp + 0x24]
add dword [edi + 0x88], ecx
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x64]
adc dword [edi + 0x8c], edx
mov edx, dword [esp + 0x54]
mov esi, dword [esp + 0x54]
sub esp, 0x14
mov eax, esp
mov edi, 8
mov dword [eax], ebx
mov ecx, edi
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov ecx, ebp
mov dword [eax + 0x10], esi
call fcn.1003d020
mov eax, dword [esp + 0x34]
mov byte [esp + 0x110], 6
test eax, eax
je 0x1003daaf
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov esi, eax
add eax, 4
push eax
call edi
test eax, eax
jne 0x1003daaf
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
push eax
call edi
test eax, eax
jne 0x1003daaf
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
lea ecx, [esp + 0x38]
call fcn.10038930
mov ecx, dword [esp + 0x38]
push ecx
call fcn.1004dca6
mov esi, dword [esp + 0x4c]
add esp, 4
push 0x80000000
push esi
mov byte [esp + 0x118], 1
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, 0x40000000
jne 0x1003db02
cmp eax, 0x80000000
jle 0x1003db02
mov edx, esi
lock bts dword [edx], 0x1e
jb 0x1003db02
mov ecx, esi
call fcn.100027b0
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor ebp, ebp
mov esi, 8
cmp dword [esp + 0x94], esi
jb 0x1003db22
mov edx, dword [esp + 0x80]
push edx
call fcn.1004dca6
add esp, 4
xor eax, eax
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], ebp
mov word [esp + 0x80], ax
cmp dword [esp + 0xb0], esi
jb 0x1003db57
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.1004dca6
add esp, 4
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.1004c01d
add esp, 0x100
ret 0xc
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x68]
mov dword [esp + 0x50], ebp
call fcn.1004c118
push 0x10083d08
lea ecx, [esp + 0x68]
push ecx
mov dword [esp + 0x6c], vtable.std::bad_alloc.0
call fcn.1004e921
int3