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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10046528
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x10057060]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
push edi
mov eax, dword [0x10057060]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], ebx
cmp byte [edi + 0x39], bl
je 0x100120c8
xor al, al
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.1002cf2d
mov esp, ebp
pop ebp
ret 8
push ebx
lea ecx, [esp + 0x110]
mov byte [esp + 0x16], bl
mov dword [esp + 0x128], 0xf
call fcn.10006848
push esi
lea ecx, [esp + 0x44]
mov dword [esp + 0x13c], ebx
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x10]
mov byte [esp + 0x138], 1
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x10012128
cmp eax, dword [esp + 0x2c]
je 0x1001212d
call fcn.1002d8f8
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x28], eax
je 0x100121d6
lea esi, [esp + 0x24]
call fcn.10013a9a
cmp dword [eax + 0x34], 8
jb 0x1001214f
mov eax, dword [eax + 0x20]
jmp 0x10012152
add eax, 0x20
cmp eax, ebx
je 0x100121a0
mov eax, dword [esp + 0x34]
mov edx, dword [eax + 0x18]
add eax, 4
cmp edx, 8
jb 0x10012169
mov ecx, dword [eax]
jmp 0x1001216b
mov ecx, eax
cmp ecx, ebx
je 0x100121a0
cmp edx, 8
jb 0x10012176
mov eax, dword [eax]
lea esi, [esp + 0x24]
mov dword [esp + 0x20], eax
call fcn.10013a9a
cmp dword [eax + 0x34], 8
jb 0x1001218e
mov eax, dword [eax + 0x20]
jmp 0x10012191
add eax, 0x20
push dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100121ae
lea esi, [esp + 0x24]
call fcn.100132f7
jmp 0x1001211a
lea esi, [esp + 0x24]
call fcn.10013a9a
mov al, byte [eax + 0x38]
mov byte [esp + 0x12], al
call fcn.10013a9a
push 0xffffffffffffffff
add eax, 0x58
push ebx
push eax
lea ecx, [esp + 0x118]
call fcn.10005912
cmp dword [esp + 0x120], ebx
jne 0x10012206
lea esi, [esp + 0x40]
call fcn.100132b5
push dword [esp + 0x40]
call fcn.1002d932
pop ecx
push ebx
push 1
lea ecx, [esp + 0x114]
call fcn.10005a12
jmp 0x100120a0
lea eax, [esp + 0x78]
push eax
call fcn.10012551
push str.uuid
lea ecx, [esp + 0xf4]
mov byte [esp + 0x13c], 2
call fcn.10005029
lea eax, [esp + 0xf0]
push eax
lea eax, [esp + 0x7c]
push eax
mov byte [esp + 0x140], 3
call fcn.10012587
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x114]
push ecx
mov ecx, eax
call fcn.10005912
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0xf8]
mov byte [esp + 0x140], 2
call fcn.10005a12
sub esp, 0x20
mov eax, esp
mov dword [esp + 0x40], esp
push eax
lea ecx, [esp + 0x9c]
call fcn.10012653
push ebx
push 7
lea eax, [esp + 0x84]
push eax
mov ecx, edi
call fcn.1000f896
push str.code
lea ecx, [esp + 0xf4]
mov byte [esp + 0x13c], 4
call fcn.10005029
lea eax, [esp + 0xf0]
push esi
push eax
lea eax, [esp + 0x64]
mov byte [esp + 0x140], 5
call fcn.1000141f
pop ecx
pop ecx
push ebx
test eax, eax
push esi
lea ecx, [esp + 0xf8]
setne byte [esp + 0x1b]
call fcn.10005a12
cmp byte [esp + 0x13], 0
je 0x1001233a
mov byte [esp + 0x12], 0
lea esi, [esp + 0x5c]
mov byte [esp + 0x138], 2
call fcn.1001d5a3
lea eax, [esp + 0x78]
push eax
mov byte [esp + 0x13c], 1
call fcn.100126fd
lea esi, [esp + 0x40]
call fcn.100132b5
push dword [esp + 0x40]
call fcn.1002d932
pop ecx
push ebx
push 1
lea ecx, [esp + 0x114]
call fcn.10005a12
mov al, byte [esp + 0x12]
jmp 0x100120a2
cmp byte [esp + 0x12], 0
je 0x100124f2
lea eax, [edi + 4]
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x1004acc4
mov byte [esp + 0x13c], 6
push dword [esp + 0x1c]
lea eax, [esp + 0xdc]
push eax
call fcn.10013fe9
add esp, 0xc
mov byte [esp + 0x138], 7
push dword [esp + 0x34]
push eax
lea eax, [esp + 0xf8]
push eax
call fcn.10008d06
add esp, 0xc
push ebx
push esi
lea esi, [esp + 0xdc]
mov byte [esp + 0x140], 9
call fcn.10005bea
lea ebx, [edi + 0x94]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x30], eax
mov eax, dword [ebx]
lea edi, [esp + 0x2c]
lea esi, [esp + 0x18]
mov dword [esp + 0x2c], eax
call fcn.1000bfa1
test al, al
jne 0x1001249c
call fcn.10013ac5
lea ecx, [esp + 0xf0]
call fcn.10009803
test al, al
jne 0x10012441
push 0x1004acc4
lea eax, [esp + 0xf4]
push eax
lea eax, [esp + 0xc0]
push eax
call fcn.10013fe9
or dword [esp + 0x20], 1
add esp, 0xc
mov edi, eax
call fcn.10013ac5
cmp dword [edi + 0x18], 8
mov ecx, dword [edi + 0x14]
jb 0x1001242e
mov edi, dword [edi + 4]
jmp 0x10012431
add edi, 4
push ecx
push edi
call fcn.10012cd4
mov byte [esp + 0x12], 0
test eax, eax
jne 0x10012446
mov byte [esp + 0x12], 1
test byte [esp + 0x14], 1
je 0x10012462
and dword [esp + 0x14], 0xfffffffe
push 0
push 1
lea esi, [esp + 0xc0]
call fcn.10005bea
cmp byte [esp + 0x12], 0
je 0x1001248e
push dword [esp + 0x1c]
lea eax, [esp + 0x38]
push dword [esp + 0x1c]
push eax
push ebx
call fcn.10012866
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jmp 0x100123c0
lea esi, [esp + 0x18]
call fcn.10012b97
jmp 0x100123c0
lea eax, [esp + 0x98]
push eax
call fcn.10012725
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x98]
mov byte [esp + 0x138], 0xa
call fcn.1000ff54
lea eax, [esp + 0x98]
push eax
mov byte [esp + 0x13c], 9
call fcn.1001283e
push 0
push 1
lea esi, [esp + 0xf8]
call fcn.10005bea
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
mov byte [esp + 0x12], 1
jmp 0x100122ec