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

Disassembly:
push 0xffffffffffffffff
push 0x10181457
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x101cd7b4]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101cd7b4]
xor eax, esp
push eax
lea eax, [esp + 0x244]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x254]
mov eax, dword [esp + 0x258]
mov esi, ecx
mov ecx, dword [esi + 0x1584]
test ecx, ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], eax
je 0x1003d5f4
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [esi + 0x1588]
test ecx, ecx
je 0x1003d605
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
lea ecx, [esp + 0x11c]
call fcn.10032a10
lea ebx, [esi + 0x15c0]
mov dword [esp + 0x38], ebx
add ebx, 4
push ebx
mov dword [esp + 0x250], 0
mov dword [esp + 0x38], 0x10199614
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edi, [esi + 0x18]
cmp dword [esp + 0x20], edi
mov byte [esp + 0x24c], 1
je 0x1003d67d
mov ebp, dword [edi + 4]
mov ecx, dword [ebp]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x20]
call fcn.100384c0
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 4]
mov eax, dword [eax]
push edx
mov edx, dword [esp + 0x34]
push ebp
push edi
push edx
push edi
push eax
push ecx
call fcn.1003b090
mov ebp, dword [esp + 0x1c]
push ebx
mov byte [esp + 0x250], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
call fcn.1015972a
add esp, 4
lea edi, [esi + 0x50]
push 0
mov ecx, edi
mov dword [esi + 0x3f0], 0
call fcn.100f7579
add dword [ebp + 0x18], eax
lea ebx, [esi + 0x88]
mov ecx, ebx
call fcn.100f5d00
push 0
mov ecx, edi
mov ebp, eax
call fcn.100f7579
mov ecx, ebx
call fcn.100f5d00
xor ebx, ebx
cmp byte [esp + 0x25c], bl
jne 0x1003d6f7
push ebx
mov ecx, edi
call fcn.100f7579
cmp eax, 1
jae 0x1003d6f2
push ebx
mov ecx, edi
call fcn.100f7579
mov ebp, eax
jmp 0x1003d6f7
mov ebp, 1
mov eax, dword [esp + 0x1c]
add dword [eax + 0x1c], ebp
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x1003d70b
mov dword [esp + 0x24], ebx
jmp 0x1003d725
mov ecx, dword [esi + 0x10]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x15e0]
mov ecx, dword [eax + 4]
lea edi, [esi + 0x15dc]
push ecx
mov ecx, edi
call fcn.100d8750
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [edi + 8], ebx
mov dword [eax], eax
mov edi, dword [edi + 4]
lea ecx, [esp + 0x1ac]
mov dword [edi + 8], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.10019c50
xor ebp, ebp
cmp dword [esp + 0x24], ebx
mov byte [esp + 0x24c], 2
mov dword [esp + 0x18], ebp
jle 0x1003dacb
xor edi, edi
mov dword [esp + 0x14], edi
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x1003d7a3
mov ecx, dword [esi + 0x10]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x1003d7a8
call fcn.1015988d
mov edx, dword [esi + 0xc]
cmp dword [edx + edi + 8], ebx
je 0x1003dab3
mov eax, edx
cmp eax, ebx
je 0x1003d7d5
mov ecx, dword [esi + 0x10]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x1003d7da
call fcn.1015988d
mov eax, dword [esi + 0xc]
add eax, edi
mov eax, dword [eax + 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x2c]
lea ecx, [esp + 0x11c]
push ecx
mov ecx, eax
call edx
test al, al
je 0x1003dab3
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x1003d81c
mov ecx, dword [esi + 0x10]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x1003d821
call fcn.1015988d
mov eax, dword [esi + 0xc]
add eax, edi
mov eax, dword [eax + 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x3c]
lea ecx, [esp + 0x88]
push ecx
mov ecx, eax
call edx
push eax
lea ecx, [esp + 0x1b0]
mov byte [esp + 0x250], 3
call fcn.1003a900
lea ecx, [esp + 0x88]
mov byte [esp + 0x24c], 2
call fcn.10019ce0
lea eax, [esp + 0x1ac]
push eax
lea ecx, [esi + 0x88]
call fcn.100f6364
test al, al
je 0x1003d966
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x1b4]
push ecx
lea ecx, [esp + 0x64]
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], 0
call fcn.10005470
cmp dword [esp + 0x70], 0x10
jb 0x1003d8b7
mov edx, dword [esp + 0x5c]
push edx
call fcn.10159534
add esp, 4
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x11c]
push eax
add ecx, 0x20
call fcn.1003b7b0
mov eax, dword [esp + 0x144]
add dword [esp + 0x28], eax
cmp byte [esp + 0x168], 0
je 0x1003d8e4
add dword [esp + 0x2c], eax
push ebx
call fcn.1015972a
mov ecx, dword [esp + 0x238]
mov edx, dword [esp + 0x148]
add esp, 4
push ecx
push ebx
push edx
push eax
mov eax, dword [esp + 0x130]
push eax
lea ecx, [esp + 0x6c]
call fcn.100f4010
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x16c]
mov edx, dword [esp + 0x178]
mov dword [esp + 0x6c], ecx
mov cx, word [esp + 0x174]
mov dword [esp + 0x74], eax
mov word [esp + 0x78], cx
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x1b0]
mov dword [esp + 0x74], edx
mov dx, word [esp + 0x17a]
push ecx
lea ecx, [esi + 0xe0]
mov word [esp + 0x82], dx
call fcn.100f55a0
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
mov byte [esp + 0x24c], 4
je 0x1003d9a7
mov ecx, dword [esi + 0x10]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x1003d9ac
call fcn.1015988d
mov eax, dword [esi + 0xc]
add eax, edi
mov eax, dword [eax + 8]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x40]
call eax
cmp eax, 0xffffffff
mov dword [esp + 0x4c], eax
je 0x1003da9a
mov ebx, dword [esp + 0x20]
mov ecx, dword [ebx + 4]
mov edi, dword [ecx]
cmp edi, ecx
je 0x1003d9e0
cmp dword [edi + 0x18], eax
je 0x1003d9e0
mov edi, dword [edi]
jmp 0x1003d9d3
cmp ebx, ebx
je 0x1003d9e9
call fcn.1015988d
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1003da0a
mov ecx, dword [esi + 0x10]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x1003da0f
call fcn.1015988d
mov eax, dword [esi + 0xc]
add eax, dword [esp + 0x14]
mov eax, dword [eax + 8]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x50]
call eax
mov ebp, dword [ebx + 4]
cmp edi, ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x54], eax
jne 0x1003da57
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x3c]
push ecx
push edx
push ebp
mov ecx, ebx
call fcn.1003a6d0
push 1
mov ecx, ebx
mov edi, eax
call fcn.10036de0
mov dword [ebp + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
jmp 0x1003da90
mov edx, dword [edi + 0xc]
test edx, edx
jne 0x1003da62
xor ecx, ecx
jmp 0x1003da67
mov ecx, dword [edi + 0x10]
sub ecx, edx
mov eax, dword [edi + 0x20]
cmp ecx, eax
jbe 0x1003da7b
test edx, edx
jne 0x1003da76
xor eax, eax
jmp 0x1003da7b
mov eax, dword [edi + 0x10]
sub eax, edx
mov ebp, dword [esp + 0x34]
cmp eax, ebp
jae 0x1003da90
cmp edi, dword [ebx + 4]
jne 0x1003da8d
call fcn.1015988d
mov dword [edi + 0x20], ebp
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
xor ebx, ebx
mov eax, dword [esp + 0x40]
cmp eax, ebx
mov byte [esp + 0x24c], 2
je 0x1003dab3
push eax
call fcn.10159534
add esp, 4
add ebp, 1
add edi, 0x18
cmp ebp, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], edi
jl 0x1003d782
mov eax, dword [esp + 0x28]
lea edi, [esi + 0x1620]
push eax
mov ecx, edi
call fcn.100f8cfb
mov ecx, dword [esp + 0x2c]
lea ebp, [esi + 0x1650]
push ecx
mov ecx, ebp
call fcn.100f8cfb
mov ecx, edi
call fcn.100f85f6
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x3f0], eax
add dword [ecx + 0x10], eax
mov ecx, ebp
call fcn.100f85f6
mov esi, dword [esi + 0x3f0]
lea ecx, [esp + 0x1ac]
call fcn.10019ce0
cmp dword [esp + 0x164], 0x10
jb 0x1003db36
mov edx, dword [esp + 0x150]
push edx
call fcn.10159534
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.10159cce
add esp, 0x23c
ret 0xc