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

Disassembly:
push 0xffffffffffffffff
push 0x1017efd7
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x101c6444]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101c6444]
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 0x1003f524
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [esi + 0x1588]
test ecx, ecx
je 0x1003f535
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
lea ecx, [esp + 0x11c]
call fcn.10034320
lea ebx, [esi + 0x15c0]
mov dword [esp + 0x38], ebx
add ebx, 4
push ebx
mov dword [esp + 0x250], 0
mov dword [esp + 0x38], 0x101975f4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edi, [esi + 0x18]
cmp dword [esp + 0x20], edi
mov byte [esp + 0x24c], 1
je 0x1003f5ad
mov ebp, dword [edi + 4]
mov ecx, dword [ebp]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x20]
call fcn.10039fc0
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.1003cfc0
mov ebp, dword [esp + 0x1c]
push ebx
mov byte [esp + 0x250], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
call fcn.1015812a
add esp, 4
lea edi, [esi + 0x50]
push 0
mov ecx, edi
mov dword [esi + 0x3f0], 0
call fcn.100fd3fb
add dword [ebp + 0x18], eax
lea ebx, [esi + 0x88]
mov ecx, ebx
call fcn.100fbb60
push 0
mov ecx, edi
mov ebp, eax
call fcn.100fd3fb
mov ecx, ebx
call fcn.100fbb60
xor ebx, ebx
cmp byte [esp + 0x25c], bl
jne 0x1003f627
push ebx
mov ecx, edi
call fcn.100fd3fb
cmp eax, 1
jae 0x1003f622
push ebx
mov ecx, edi
call fcn.100fd3fb
mov ebp, eax
jmp 0x1003f627
mov ebp, 1
mov eax, dword [esp + 0x1c]
add dword [eax + 0x1c], ebp
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x1003f63b
mov dword [esp + 0x24], ebx
jmp 0x1003f655
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.10024760
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.1001be80
xor ebp, ebp
cmp dword [esp + 0x24], ebx
mov byte [esp + 0x24c], 2
mov dword [esp + 0x18], ebp
jle 0x1003f9fb
xor edi, edi
mov dword [esp + 0x14], edi
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x1003f6d3
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 0x1003f6d8
call fcn.1015828d
mov edx, dword [esi + 0xc]
cmp dword [edx + edi + 8], ebx
je 0x1003f9e3
mov eax, edx
cmp eax, ebx
je 0x1003f705
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 0x1003f70a
call fcn.1015828d
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 0x1003f9e3
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x1003f74c
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 0x1003f751
call fcn.1015828d
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.1003c830
lea ecx, [esp + 0x88]
mov byte [esp + 0x24c], 2
call fcn.1001bf10
lea eax, [esp + 0x1ac]
push eax
lea ecx, [esi + 0x88]
call fcn.100fc1c4
test al, al
je 0x1003f896
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.10001a10
cmp dword [esp + 0x70], 0x10
jb 0x1003f7e7
mov edx, dword [esp + 0x5c]
push edx
call fcn.10157f3b
add esp, 4
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x11c]
push eax
add ecx, 0x20
call fcn.1003d6e0
mov eax, dword [esp + 0x144]
add dword [esp + 0x28], eax
cmp byte [esp + 0x168], 0
je 0x1003f814
add dword [esp + 0x2c], eax
push ebx
call fcn.1015812a
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.100f9e42
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.100fb400
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 0x1003f8d7
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 0x1003f8dc
call fcn.1015828d
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 0x1003f9ca
mov ebx, dword [esp + 0x20]
mov ecx, dword [ebx + 4]
mov edi, dword [ecx]
cmp edi, ecx
je 0x1003f910
cmp dword [edi + 0x18], eax
je 0x1003f910
mov edi, dword [edi]
jmp 0x1003f903
cmp ebx, ebx
je 0x1003f919
call fcn.1015828d
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1003f93a
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 0x1003f93f
call fcn.1015828d
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 0x1003f987
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x3c]
push ecx
push edx
push ebp
mov ecx, ebx
call fcn.1003c600
push 1
mov ecx, ebx
mov edi, eax
call fcn.10038730
mov dword [ebp + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
jmp 0x1003f9c0
mov edx, dword [edi + 0xc]
test edx, edx
jne 0x1003f992
xor ecx, ecx
jmp 0x1003f997
mov ecx, dword [edi + 0x10]
sub ecx, edx
mov eax, dword [edi + 0x20]
cmp ecx, eax
jbe 0x1003f9ab
test edx, edx
jne 0x1003f9a6
xor eax, eax
jmp 0x1003f9ab
mov eax, dword [edi + 0x10]
sub eax, edx
mov ebp, dword [esp + 0x34]
cmp eax, ebp
jae 0x1003f9c0
cmp edi, dword [ebx + 4]
jne 0x1003f9bd
call fcn.1015828d
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 0x1003f9e3
push eax
call fcn.10157f3b
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 0x1003f6b2
mov eax, dword [esp + 0x28]
lea edi, [esi + 0x1620]
push eax
mov ecx, edi
call fcn.100feacf
mov ecx, dword [esp + 0x2c]
lea ebp, [esi + 0x1650]
push ecx
mov ecx, ebp
call fcn.100feacf
mov ecx, edi
call fcn.100fe409
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x3f0], eax
add dword [ecx + 0x10], eax
mov ecx, ebp
call fcn.100fe409
mov esi, dword [esi + 0x3f0]
lea ecx, [esp + 0x1ac]
call fcn.1001bf10
cmp dword [esp + 0x164], 0x10
jb 0x1003fa66
mov edx, dword [esp + 0x150]
push edx
call fcn.10157f3b
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.101586e7
add esp, 0x23c
ret 0xc