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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a8d73
mov eax, dword fs:[0]
push eax
sub esp, 0x1e0
push ebx
push esi
push edi
mov eax, dword [0x100bc210]
xor eax, esp
push eax
lea eax, [esp + 0x1f0]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [esi + 0x5c]
push eax
mov dword [esp + 0x74], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [esi + 0x88], 0
jne 0x1007b8f3
push dword [esi + 0x7c]
lea eax, [esp + 0x5c]
push eax
call fcn.100279c9
push 0x100194a8
lea eax, [esp + 0x60]
xor ebx, ebx
push eax
mov dword [esp + 0x200], ebx
call fcn.1005f361
push 0x100194e0
lea eax, [esp + 0x58]
push eax
lea edi, [esp + 0x60]
mov byte [esp + 0x200], 1
call fcn.1005fd4e
lea eax, [esp + 0x5c]
push eax
push 0x10019508
mov byte [esp + 0x200], 2
push dword [esp + 0x5c]
mov edi, dword [esi + 0x84]
lea eax, [esp + 0x84]
push eax
call fcn.10026605
mov byte [esp + 0x1f8], 3
mov dword [esp + 0x28], ebx
cmp dword [esi + 0x28], ebx
jbe 0x1007b095
lea eax, [esi + 0x50]
mov dword [esp + 0x4c], eax
push 0x28
call fcn.100880c5
pop ecx
mov dword [esp + 0x14], eax
mov byte [esp + 0x1f8], 4
cmp eax, ebx
je 0x1007b066
push dword [esp + 0x28]
lea edi, [esi + 4]
call fcn.1004669e
push dword [esi + 0x84]
mov ebx, dword [esi + 0x80]
push dword [esi + 0x7c]
mov edi, eax
push dword [esp + 0x1c]
call fcn.1007d2cd
jmp 0x1007b068
xor eax, eax
mov byte [esp + 0x1f8], 3
mov esi, dword [esp + 0x4c]
lea ebx, [esp + 0x14]
mov dword [esp + 0x14], eax
call fcn.1006b4f9
inc dword [esp + 0x28]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x28]
xor ebx, ebx
mov esi, eax
cmp ecx, dword [eax + 0x28]
jb 0x1007b026
push 0x18
call fcn.100880c5
pop ecx
cmp eax, ebx
je 0x1007b0c1
mov ecx, dword [esi + 0x80]
mov dword [eax], 0x1001d13c
lea edx, [esi + 0x30]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
jmp 0x1007b0c3
xor eax, eax
push 0x2c
mov dword [esi + 0x74], eax
call fcn.100880c5
pop ecx
cmp eax, ebx
je 0x1007b10b
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x80]
mov dword [eax], 0x1001d168
mov dword [eax + 8], ecx
lea edi, [esi + 0x30]
mov dword [eax + 4], edi
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x20], ebx
mov dword [eax + 0x24], ebx
mov dword [eax + 0x28], 1
jmp 0x1007b10d
xor eax, eax
mov ebx, dword [esi + 0x74]
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0x7c]
lea esi, [ebx + 0xc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], esi
call fcn.1007d441
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov byte [esp + 0x1f8], 5
mov ecx, dword [ebx + 4]
mov dword [esp + 0x28], eax
cmp dword [ecx + 0x24], eax
jbe 0x1007b897
mov ecx, 0x100bcf90
lea esi, [esp + 0x38]
call fcn.10084a73
push dword [esp + 0x28]
mov byte [esp + 0x1fc], 6
mov edi, dword [ebx + 4]
mov dword [esp + 0x40], 3
call fcn.1004669e
push 0
push 0x100c4608
mov edi, 0x100c4218
push edi
push 0
push eax
call fcn.10094605
add esp, 0x14
mov esi, eax
mov eax, dword [esi + 0x20]
push 3
pop ecx
mov dword [esp + 0x3c], eax
cmp eax, ecx
je 0x1007b1af
cmp eax, 2
jne 0x1007b86f
mov eax, dword [esp + 0x28]
or dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x30], eax
mov eax, dword [esi + 8]
dec eax
mov dword [esp + 0x2c], ecx
mov word [esp + 0x40], 0x100
je 0x1007b73e
sub eax, ecx
mov edi, dword [esi + 0x1c]
je 0x1007b4bd
dec eax
dec eax
je 0x1007b3a9
call fcn.10026543
mov ebx, dword [ebx + 8]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x104]
push eax
call fcn.1007fca7
mov eax, dword [eax + 0x20]
lea ecx, [esp + 0xfc]
mov dword [esp + 0x3c], eax
call fcn.100630fb
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
inc dword [esp + 0x10]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea edi, [esp + 0x30]
call fcn.1007ff7f
mov ebx, dword [esp + 0x24]
mov esi, dword [esi + 0x1c]
xor edi, edi
push edi
push 0x100c4378
push 0x100c4218
push edi
push esi
call fcn.10094605
mov esi, eax
add esp, 0x14
mov dword [esp + 0x50], esi
cmp esi, edi
je 0x1007b86f
mov eax, dword [esi + 0x10]
or dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x74], eax
mov dword [esp + 0x14], edi
test eax, eax
jle 0x1007b86f
mov byte [esp + 0x41], 0
test edi, edi
js 0x1007b91b
cmp edi, dword [esi + 0x10]
jge 0x1007b91b
mov eax, dword [esi + 0xc]
push 0
push 0x100c4258
mov ecx, edi
shl ecx, 2
mov eax, dword [eax + ecx]
push 0x100c4218
push 0
push eax
mov dword [esp + 0x5c], ecx
call fcn.10094605
add esp, 0x14
test eax, eax
je 0x1007b860
lea ecx, [esp + 0x4c]
push ecx
call fcn.1003abec
mov byte [esp + 0x1f8], 7
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
call fcn.10084ad6
add eax, 0x10
mov dword [esp + 0x44], eax
lea eax, [esp + 0x44]
mov byte [esp + 0x1f8], 8
call fcn.1006000d
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov dword [esp + 0x60], eax
call fcn.10084ad6
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x1f8], 9
cmp edi, dword [esi + 0x10]
jge 0x1007b91b
mov eax, dword [esi + 0xc]
add eax, dword [esp + 0x48]
mov edi, dword [eax]
call fcn.10026543
mov ebx, dword [ebx + 8]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x8c]
push eax
call fcn.1007fca7
mov edi, dword [eax + 0x20]
lea ecx, [esp + 0x84]
call fcn.100630fb
cmp edi, 3
je 0x1007b355
cmp edi, 2
jne 0x1007b82f
lea eax, [esp + 0x18]
push eax
lea esi, [esp + 0x68]
call fcn.1006009a
cmp eax, 0xffffffff
lea eax, [esp + 0x18]
jne 0x1007b7fc
mov dword [esp + 0x3c], edi
lea edi, [esp + 0x38]
call fcn.1005f4dc
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
inc dword [esp + 0x10]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x48]
push eax
lea edi, [esp + 0x30]
call fcn.1007ff7f
lea ebx, [esp + 0x18]
call fcn.100600d0
jmp 0x1007b82b
call fcn.10026543
mov ebx, dword [ebx + 8]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x1cc]
push eax
call fcn.1007fca7
mov eax, dword [eax + 0x20]
lea ecx, [esp + 0x1c4]
mov dword [esp + 0x3c], eax
call fcn.100630fb
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
inc dword [esp + 0x10]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea edi, [esp + 0x30]
mov dword [esp + 0x30], 1
call fcn.1007ff7f
mov eax, dword [esi + 0x1c]
push 1
push 0x100c439c
push 0x100c4218
xor edi, edi
push edi
push eax
call fcn.10094605
add esp, 0x14
mov dword [esp + 0x44], eax
mov dword [esp + 0x18], edi
cmp dword [eax + 0x154], edi
jbe 0x1007b22f
mov byte [esp + 0x41], 0
call fcn.10026543
mov edi, dword [esp + 0x44]
push eax
push dword [esp + 0x24]
push dword [esp + 0x20]
call fcn.100435a9
lea ecx, [esp + 0xb4]
push ecx
mov ecx, dword [esp + 0x30]
mov ebx, dword [ecx + 8]
mov edi, eax
call fcn.1007d2cd
mov edi, dword [eax + 0x20]
lea ecx, [esp + 0xac]
call fcn.100630fb
cmp edi, 3
je 0x1007b476
cmp edi, 2
jne 0x1007b4a0
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
inc dword [esp + 0x10]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x3c], edi
push eax
lea edi, [esp + 0x30]
call fcn.1007ff7f
inc dword [esp + 0x18]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x154]
jb 0x1007b42b
jmp 0x1007b22f
mov dword [esp + 0x2c], 2
call fcn.10026543
mov ebx, dword [ebx + 8]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x1a4]
push eax
call fcn.1007fca7
mov edi, dword [eax + 0x20]
lea ecx, [esp + 0x19c]
mov dword [esp + 0x3c], edi
call fcn.100630fb
mov eax, dword [esi + 0x1c]
push 1
push 0x100c43bc
push 0x100c4218
push 0
push eax
call fcn.10094605
add esp, 0x14
cmp dword [esp + 0x20], 1
mov dword [esp + 0x18], eax
je 0x1007b522
cmp dword [esp + 0x20], 4
jne 0x1007b662
cmp edi, 3
je 0x1007b52c
cmp edi, 2
jne 0x1007b54a
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
inc dword [esp + 0x10]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea edi, [esp + 0x30]
call fcn.1007ff7f
mov eax, dword [esp + 0x18]
mov edi, dword [eax + 0x158]
test edi, edi
je 0x1007b5bb
call fcn.10026543
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x154]
push eax
mov eax, dword [esp + 0x30]
mov ebx, dword [eax + 8]
call fcn.1007fca7
mov edi, dword [eax + 0x20]
lea ecx, [esp + 0x14c]
call fcn.100630fb
cmp edi, 3
je 0x1007b58f
cmp edi, 2
jne 0x1007b5bb
mov eax, dword [esp + 0x10]
and dword [esp + 0x34], 0
mov ebx, dword [esp + 0x1c]
inc dword [esp + 0x10]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x3c], edi
push eax
lea edi, [esp + 0x30]
mov byte [esp + 0x45], 0
call fcn.1007ff7f
cmp dword [esp + 0x20], 4
jne 0x1007b662
mov eax, dword [esp + 0x18]
mov edi, dword [eax + 0x154]
test edi, edi
je 0x1007b22f
call fcn.10026543
push eax
push 4
lea eax, [esp + 0xdc]
push eax
mov eax, dword [esp + 0x30]
mov ebx, dword [eax + 8]
call fcn.1007fca7
mov eax, dword [eax + 0x20]
lea ecx, [esp + 0xd4]
mov dword [esp + 0x3c], eax
call fcn.100630fb
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
inc dword [esp + 0x10]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea edi, [esp + 0x30]
mov dword [esp + 0x38], 1
mov byte [esp + 0x45], 0
call fcn.1007ff7f
cmp dword [esp + 0x3c], 3
je 0x1007b644
cmp dword [esp + 0x3c], 2
jne 0x1007b22f
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
inc dword [esp + 0x10]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea edi, [esp + 0x30]
call fcn.1007ff7f
cmp dword [esp + 0x20], 3
jne 0x1007b6e3
mov eax, dword [esp + 0x18]
mov edi, dword [eax + 0x154]
test edi, edi
je 0x1007b6b3
call fcn.10026543
push eax
push 3
lea eax, [esp + 0x12c]
push eax
mov eax, dword [esp + 0x30]
mov ebx, dword [eax + 8]
call fcn.1007fca7
mov eax, dword [eax + 0x20]
lea ecx, [esp + 0x124]
mov dword [esp + 0x3c], eax
call fcn.100630fb
mov dword [esp + 0x34], 1
mov byte [esp + 0x41], 0
cmp dword [esp + 0x3c], 3
je 0x1007b6c5
cmp dword [esp + 0x3c], 2
jne 0x1007b22f
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
inc dword [esp + 0x10]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea edi, [esp + 0x30]
call fcn.1007ff7f
cmp dword [esp + 0x20], 2
jne 0x1007b22f
mov eax, dword [esp + 0x18]
mov edi, dword [eax + 0x158]
test edi, edi
je 0x1007b211
call fcn.10026543
push eax
push 2
lea eax, [esp + 0x17c]
push eax
mov eax, dword [esp + 0x30]
mov ebx, dword [eax + 8]
call fcn.1007fca7
mov eax, dword [eax + 0x20]
lea ecx, [esp + 0x174]
mov dword [esp + 0x3c], eax
call fcn.100630fb
and dword [esp + 0x34], 0
mov byte [esp + 0x41], 0
jmp 0x1007b211
mov eax, dword [esi + 0x1c]
and dword [esp + 0x2c], 0
push 1
push 0x100c44bc
push edi
push 0
push eax
call fcn.10094605
and dword [esp + 0x2c], 0
add esp, 0x14
cmp dword [eax + 0x9c], 0
mov dword [esp + 0x44], eax
jbe 0x1007b233
call fcn.10026543
mov edi, dword [esp + 0x44]
push eax
push dword [esp + 0x24]
push dword [esp + 0x20]
call fcn.100413d6
mov ebx, dword [ebx + 8]
lea ecx, [esp + 0x8c]
push ecx
mov edi, eax
call fcn.1007d2cd
mov edi, dword [eax + 0x20]
lea ecx, [esp + 0x84]
call fcn.100630fb
cmp edi, 3
je 0x1007b7b1
cmp edi, 2
jne 0x1007b7db
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
inc dword [esp + 0x10]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x3c], edi
push eax
lea edi, [esp + 0x30]
call fcn.1007ff7f
inc dword [esp + 0x18]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
cmp ecx, dword [eax + 0x9c]
jb 0x1007b76f
jmp 0x1007b233
lea edi, [esp + 0x38]
mov dword [esp + 0x3c], 1
call fcn.1005f4dc
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
inc dword [esp + 0x10]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x48]
push eax
lea edi, [esp + 0x30]
call fcn.1007ff7f
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.10084b37
mov eax, dword [esp + 0x60]
call fcn.10084b37
mov byte [esp + 0x1f8], 6
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
call fcn.10084b37
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
inc edi
mov dword [esp + 0x14], edi
cmp edi, dword [esp + 0x74]
jl 0x1007b273
mov byte [esp + 0x1f8], 5
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
call fcn.10084b37
inc dword [esp + 0x28]
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x28]
cmp ecx, dword [eax + 0x24]
jb 0x1007b154
lea esi, [esp + 0x64]
mov byte [esp + 0x1f8], 3
call fcn.10072bbb
mov esi, dword [ebp + 8]
push dword [esi + 0x7c]
push dword [esi + 0x78]
call fcn.1007d490
lea eax, [esp + 0x78]
push eax
mov byte [esi + 0x88], 1
mov byte [esp + 0x1fc], 2
call fcn.10026646
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
call fcn.10084b37
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
call fcn.10084b37
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
call fcn.10084b37
push dword [esp + 0x70]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [esi + 0x88]
mov ecx, dword [esp + 0x1f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.10083247
int3