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

Disassembly:
push 0xffffffffffffffff
push 0x1017b789
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101c6444]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
mov edi, ecx
movzx eax, word [edi + 0x30c]
cmp ax, 0x1e
mov dword [esp + 0x18], 0x1e
jb 0x10012dbf
movzx ecx, ax
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
movzx ecx, ax
mov dword [esp + 0x18], ecx
mov eax, dword [edi + 0x2a8]
mov esi, dword [eax]
lea ebx, [edi + 0x2a4]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], ebx
jmp 0x10012de0
test ebx, ebx
mov ebp, dword [edi + 0x2a8]
lea eax, [edi + 0x2a4]
je 0x10012df4
cmp ebx, eax
je 0x10012df9
call fcn.1015828d
cmp esi, ebp
je 0x10013221
test ebx, ebx
jne 0x10012e0a
call fcn.1015828d
cmp esi, dword [ebx + 4]
jne 0x10012e14
call fcn.1015828d
cmp dword [esi + 0x10], 0
jne 0x10013033
cmp esi, dword [ebx + 4]
jne 0x10012e28
call fcn.1015828d
cmp word [esi + 0x14], 0x14
jae 0x10012ff3
push 0x38
call fcn.101582b6
add esp, 4
mov dword [esp + 0x3c], eax
test eax, eax
mov dword [esp + 0xa4], 0
je 0x10012e59
mov ecx, eax
call fcn.1007e0d0
jmp 0x10012e5b
xor eax, eax
push 0x24
mov dword [esp + 0xa8], 0xffffffff
mov dword [esp + 0x28], 0x101995c0
mov dword [esp + 0x2c], 0x10199578
mov dword [esp + 0x30], eax
call fcn.101582b6
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x10012eab
mov dword [ebp], 0x1019767c
lea edx, [ebp + 0xc]
mov dword [ebp + 4], 1
push edx
mov dword [ebp + 8], 0x101975e4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x10012ead
xor ebp, ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x24], 0x101995c0
mov eax, dword [edi + 0x60]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0x18
lea ecx, [esp + 0x78]
mov dword [esp + 0xb0], 1
call fcn.100d8f80
lea ecx, [esp + 0x28]
mov byte [esp + 0xa4], 3
mov dword [esp + 0x24], 0x101995c0
mov dword [esp + 0x28], 0x10199578
call fcn.10006f60
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
mov byte [esp + 0x16], 0
call eax
push 3
mov ecx, edi
mov ebp, eax
call fcn.1000a7b0
movzx ecx, ax
push ecx
push 0
push 0x18
push ebp
call fcn.100f330e
add esp, 0x14
mov byte [esp + 0x58], 0
mov edx, dword [esp + 0x58]
push edx
lea eax, [edi + 0x1fc]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, ebp
mov dword [esp + 0x50], 0x13014
call fcn.1000ea20
cmp esi, dword [ebx + 4]
mov dword [esp + 0x50], 0x13035
jne 0x10012f5c
call fcn.1015828d
mov byte [esp + 0x4c], 0
mov edx, dword [esp + 0x4c]
push edx
lea eax, [esi + 0xc]
push eax
lea eax, [esp + 0x58]
push eax
mov ecx, ebp
call fcn.1000ec50
cmp dword [esp + 0x6c], 0xf
je 0x10012f8f
push 0
call fcn.1015812a
add esp, 4
cmp eax, dword [edi + 0x300]
jl 0x10012fc3
cmp word [edi + 0x2e2], 0
mov eax, dword [esp + 0x7c]
setne cl
mov byte [esp + 0x40], cl
mov edx, dword [esp + 0x40]
movzx ecx, word [edi + 0x2e0]
push edx
mov edx, dword [edi + 0x2dc]
push eax
push ecx
mov ecx, dword [edi]
push edx
mov byte [esp + 0x27], 0
call fcn.1001c350
cmp esi, dword [ebx + 4]
jne 0x10012fcd
call fcn.1015828d
lea ecx, [esp + 0x78]
mov dword [esp + 0xa4], 0xffffffff
mov dword [esp + 0x74], 0x101995c0
mov dword [esp + 0x78], 0x10199578
call fcn.10006f60
jmp 0x1001300e
cmp esi, dword [ebx + 4]
jne 0x10012ffd
call fcn.1015828d
mov dword [esi + 0x10], 2
cmp esi, dword [ebx + 4]
jne 0x10013018
call fcn.1015828d
cmp esi, dword [ebx + 4]
jne 0x10013018
call fcn.1015828d
add word [esi + 0x14], 1
lea ecx, [esp + 0x1c]
call fcn.10004ed0
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
jmp 0x10012de0
cmp esi, dword [ebx + 4]
jne 0x1001303d
call fcn.1015828d
cmp dword [esi + 0x10], 1
jne 0x1001320b
cmp esi, dword [ebx + 4]
jne 0x10013051
call fcn.1015828d
add word [esi + 0x16], 1
cmp esi, dword [ebx + 4]
jne 0x10013060
call fcn.1015828d
mov ax, word [esp + 0x18]
cmp word [esi + 0x16], ax
jb 0x1001320b
cmp esi, dword [ebx + 4]
jne 0x10013079
call fcn.1015828d
mov dword [esi + 0x10], 0
cmp esi, dword [ebx + 4]
jne 0x1001308a
call fcn.1015828d
mov word [esi + 0x14], 0
cmp esi, dword [ebx + 4]
jne 0x1001309a
call fcn.1015828d
push 0x38
mov word [esi + 0x16], 0
call fcn.101582b6
add esp, 4
mov dword [esp + 0x3c], eax
test eax, eax
mov dword [esp + 0xa4], 4
je 0x100130c6
mov ecx, eax
call fcn.1007e0d0
jmp 0x100130c8
xor eax, eax
push 0
mov ebp, 0x101995c0
push eax
lea ecx, [esp + 0x68]
mov dword [esp + 0xac], 0xffffffff
mov dword [esp + 0x64], ebp
call fcn.100371c0
mov dword [esp + 0x5c], 0x101995c0
mov ecx, dword [edi + 0x60]
push ecx
lea edx, [esp + 0x60]
push edx
push 0x18
lea ecx, [esp + 0x90]
mov dword [esp + 0xb0], 5
call fcn.100d8f80
lea ecx, [esp + 0x60]
mov byte [esp + 0xa4], 7
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], 0x10199578
call fcn.10006f60
mov ecx, dword [esp + 0x94]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov byte [esp + 0x15], 0
call edx
push 3
mov ecx, edi
mov ebp, eax
call fcn.1000a7b0
movzx eax, ax
push eax
push 0
push 0x18
push ebp
call fcn.100f330e
add esp, 0x14
mov byte [esp + 0x34], 0
mov ecx, dword [esp + 0x34]
push ecx
lea edx, [edi + 0x1fc]
push edx
lea eax, [esp + 0x50]
push eax
mov ecx, ebp
mov dword [esp + 0x54], 0x13014
call fcn.1000ea20
cmp esi, dword [ebx + 4]
mov dword [esp + 0x38], 0x13035
jne 0x10013195
call fcn.1015828d
mov byte [esp + 0x54], 0
mov ecx, dword [esp + 0x54]
push ecx
lea eax, [esi + 0xc]
push eax
lea edx, [esp + 0x40]
push edx
mov ecx, ebp
call fcn.1000ec50
lea eax, [edi + 0x2b4]
push eax
lea ecx, [esp + 0x88]
push ecx
mov ecx, edi
call fcn.10005860
cmp esi, dword [ebx + 4]
jne 0x100131d9
call fcn.1015828d
cmp esi, dword [ebx + 4]
jne 0x100131d9
call fcn.1015828d
add word [esi + 0x14], 1
lea ecx, [esp + 0x90]
mov dword [esp + 0xa4], 0xffffffff
mov dword [esp + 0x8c], 0x101995c0
mov dword [esp + 0x90], 0x10199578
call fcn.10006f60
lea ecx, [esp + 0x1c]
call fcn.10004ed0
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
jmp 0x10012de0
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 4