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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x1001f080]
xor eax, esp
mov dword [esp + 0x120], eax
mov eax, dword [0x10021bec]
push ebx
push esi
push edi
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1000295a
mov eax, dword [0x10021c34]
mov ebx, dword [eax]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], eax
cmp ebx, eax
je 0x10002867
lea ebx, [ebx]
mov edi, dword [ebx + 0x10]
xor esi, esi
cmp edi, esi
je 0x10002814
mov eax, dword [ebx + 0xc]
cmp eax, 0x44d
jg 0x1000268d
je 0x10002641
cmp eax, 0x65
je 0x10002624
cmp eax, 0x3ed
jne 0x10002814
cmp byte [0x10021c01], 0
jne 0x10002814
mov ecx, dword [0x10021c24]
mov eax, dword [0x10021c20]
sub ecx, eax
sar ecx, 2
mov byte [0x10021c01], 1
test ecx, ecx
je 0x10002814
mov dword [esp + 0x14], 0
mov edx, dword [eax + esi*4]
mov eax, dword [edi]
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edx
mov edx, dword [eax + 4]
push ecx
mov ecx, edi
call edx
mov ecx, dword [0x10021c24]
mov eax, dword [0x10021c20]
sub ecx, eax
inc esi
sar ecx, 2
cmp esi, ecx
jb 0x100025ed
jmp 0x10002814
cmp byte [0x10021c00], 0
jne 0x10002814
mov byte [0x10021c00], 1
lea eax, [esp + 0xf]
jmp 0x1000280a
cmp byte [0x10021c02], 0
jne 0x10002814
mov eax, dword [0x10021bf4]
mov ecx, dword [0x10021c50]
mov edx, dword [0x10021c54]
mov dword [esp + 0x58], eax
mov eax, dword [edi]
mov dword [esp + 0x64], ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0x68], edx
mov edx, dword [eax + 4]
mov byte [0x10021c02], 1
mov dword [esp + 0x60], 1
mov dword [esp + 0x5c], esi
push ecx
jmp 0x10002810
sub eax, 0x44e
je 0x100027d7
dec eax
je 0x100026cb
sub eax, 2
jne 0x10002814
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov eax, dword [edi]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
push ecx
jmp 0x10002810
mov eax, dword [0x10021c5c]
mov esi, dword [eax]
mov dword [esp + 0x18], eax
cmp esi, eax
je 0x10002814
xor eax, eax
push 0x90
push eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
lea eax, [esp + 0xa0]
push eax
call fcn.1000fad0
add esp, 0xc
cmp dword [esi + 0x20], 0x10
jb 0x1000270f
mov ebx, dword [esi + 0xc]
jmp 0x10002712
lea ebx, [esi + 0xc]
lea eax, [esp + 0x99]
mov ecx, eax
mov edx, 0x80
sub ebx, ecx
lea ecx, [edx + 0x7fffff7e]
test ecx, ecx
je 0x1000273b
mov cl, byte [eax + ebx]
test cl, cl
je 0x1000273b
mov byte [eax], cl
inc eax
dec edx
jne 0x10002722
jmp 0x1000273f
test edx, edx
jne 0x10002740
dec eax
mov edx, dword [0x10021bf4]
mov byte [eax], 0
movzx eax, byte [esi + 0x28]
mov dword [esp + 0x90], edx
mov edx, dword [edi]
mov edx, dword [edx + 4]
mov dword [esp + 0x11c], eax
lea eax, [esp + 0x90]
push eax
mov ecx, edi
mov dword [esp + 0x98], 0
mov dword [esp + 0x124], 1
call edx
cmp byte [esi + 0x31], 0
jne 0x100027c7
mov eax, dword [esi + 8]
cmp byte [eax + 0x31], 0
jne 0x100027ac
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x31], 0
jne 0x100027c7
jmp 0x100027a0
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x31], 0
je 0x100027a0
jmp 0x100027c7
mov eax, dword [esi + 4]
cmp byte [eax + 0x31], 0
jne 0x100027c5
cmp esi, dword [eax + 8]
jne 0x100027c5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x31], 0
je 0x100027b5
mov esi, eax
cmp esi, dword [esp + 0x18]
jne 0x100026de
mov ebx, dword [esp + 0x10]
jmp 0x10002814
cmp byte [0x10021c03], 0
jne 0x10002814
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [0x10021bf4]
mov dword [esp + 0x20], eax
mov byte [0x10021c03], 1
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], esi
lea eax, [esp + 0x20]
mov edx, dword [edi]
mov edx, dword [edx + 4]
push eax
mov ecx, edi
call edx
cmp byte [ebx + 0x15], 0
jne 0x1000285d
mov ecx, dword [ebx + 8]
cmp byte [ecx + 0x15], 0
jne 0x1000283e
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
jne 0x1000283a
jmp 0x10002830
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
je 0x10002830
mov ebx, ecx
jmp 0x10002859
mov eax, dword [ebx + 4]
cmp byte [eax + 0x15], 0
jne 0x10002857
cmp ebx, dword [eax + 8]
jne 0x10002857
mov ebx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x10002847
mov ebx, eax
mov dword [esp + 0x10], ebx
cmp ebx, dword [esp + 0x1c]
jne 0x10002590
mov eax, dword [0x10021c14]
mov esi, dword [eax]
cmp esi, eax
je 0x1000294e
jmp 0x10002880
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + 8]
sub eax, 0x450
je 0x100028d8
sub eax, 2
jne 0x100028fe
mov edx, dword [esi + 0x14]
push edx
mov edx, dword [esi + 0x10]
push edx
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov byte [esp + 0x78], 1
mov eax, dword [ecx]
mov eax, dword [eax]
push 0
lea edx, [esp + 0x7c]
push edx
call eax
jmp 0x100028fe
mov edi, dword [esi + 0x14]
push edi
mov edi, dword [esi + 0x10]
xor eax, eax
push edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov edx, dword [ecx]
mov edx, dword [edx]
push eax
lea eax, [esp + 0x3c]
push eax
call edx
cmp byte [esi + 0x21], 0
jne 0x10002942
mov eax, dword [esi + 8]
cmp byte [eax + 0x21], 0
jne 0x10002923
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x21], 0
jne 0x10002942
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x21], 0
je 0x10002917
jmp 0x10002942
mov eax, dword [esi + 4]
cmp byte [eax + 0x21], 0
jne 0x10002940
lea esp, [esp]
cmp esi, dword [eax + 8]
jne 0x10002940
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x21], 0
je 0x10002930
mov esi, eax
cmp esi, dword [0x10021c14]
jne 0x10002880
mov eax, dword [0x10021bec]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100095c5
mov esp, ebp
pop ebp
ret