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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10170072
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x101b01e4]
xor eax, esp
mov dword [esp + 0x180], eax
push ebx
push esi
push edi
mov eax, dword [0x101b01e4]
xor eax, esp
push eax
lea eax, [esp + 0x198]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
lea esi, [ebx + 0x1ba8]
push esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], ecx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov dl, byte [ebx + 0x1bc0]
push esi
mov byte [esp + 0x17], dl
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp byte [esp + 0x13], 0
jne 0x1006d91c
lea ecx, [esp + 0x104]
call fcn.10005a20
mov edi, dword [ebx + 0x44]
xor eax, eax
cmp dword [ebx + 0x40], edi
lea esi, [ebx + 0x3c]
mov dword [esp + 0x1a0], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
jbe 0x1006d32a
call fcn.10149775
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
mov dword [esp + 0x24], eax
jbe 0x1006d33f
call fcn.10149775
mov eax, dword [esp + 0x24]
push edi
push esi
push eax
push esi
lea eax, [esp + 0x94]
push eax
mov ecx, esi
call fcn.10037100
mov ecx, dword [ebx + 0xc]
mov esi, dword [ecx]
lea eax, [ebx + 8]
mov edi, eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x98], ecx
jmp 0x1006d370
test edi, edi
je 0x1006d37b
lea eax, [ebx + 8]
cmp edi, eax
je 0x1006d380
call fcn.10149775
cmp esi, dword [esp + 0x98]
je 0x1006d84f
test edi, edi
jne 0x1006d396
call fcn.10149775
cmp esi, dword [edi + 4]
jne 0x1006d3a0
call fcn.10149775
cmp dword [esi + 0x70], 0
je 0x1006d839
cmp esi, dword [edi + 4]
jne 0x1006d3b4
call fcn.10149775
mov ecx, dword [esi + 0x70]
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
lea eax, [esp + 0x104]
push eax
call edx
test al, al
je 0x1006d839
cmp esi, dword [edi + 4]
jne 0x1006d3d8
call fcn.10149775
mov ax, word [esi + 0x53]
lea ecx, [esp + 0x114]
push ecx
lea edx, [esp + 0x18]
lea edi, [ebx + 0x1b7c]
push edx
mov ecx, edi
mov word [esp + 0x120], ax
call fcn.100a3980
mov eax, dword [edi + 4]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1006d414
cmp eax, edi
je 0x1006d419
call fcn.10149775
mov edi, dword [esp + 0x18]
cmp edi, dword [esp + 0x90]
je 0x1006d4ae
cmp dword [esp + 0x14], 0
jne 0x1006d436
call fcn.10149775
mov ecx, dword [esp + 0x14]
cmp edi, dword [ecx + 4]
jne 0x1006d444
call fcn.10149775
mov dl, byte [edi + 0x11]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x165], dl
cmp edi, dword [eax + 4]
jne 0x1006d45c
call fcn.10149775
mov cl, byte [edi + 0x10]
mov edx, dword [esp + 0x14]
mov byte [esp + 0x164], cl
cmp edi, dword [edx + 4]
jne 0x1006d474
call fcn.10149775
mov al, byte [edi + 0x12]
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x166], al
cmp edi, dword [ecx + 4]
jne 0x1006d48c
call fcn.10149775
mov dl, byte [edi + 0x13]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x167], dl
cmp edi, dword [eax + 4]
jne 0x1006d4a4
call fcn.10149775
mov cl, byte [edi + 0x14]
mov byte [esp + 0x168], cl
mov edi, dword [esp + 0x34]
lea edx, [esp + 0x104]
push edx
lea ecx, [edi + 0x20]
call fcn.10047ad0
mov eax, dword [esp + 0x104]
test eax, eax
jne 0x1006d6c2
mov eax, dword [esp + 0x124]
add dword [esp + 0x2c], eax
add dword [edi + 0x10], eax
cmp dword [esp + 0x10c], 0
je 0x1006d5b8
mov eax, dword [esp + 0x108]
add dword [esp + 0x28], 1
push eax
lea ecx, [esp + 0xa0]
push ecx
call fcn.100e595e
mov edx, dword [esp + 0x114]
push edx
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x1b0], 1
call fcn.100e4d2a
mov edi, 0x10
lea ecx, [esp + 0xec]
push edi
push ecx
mov byte [esp + 0x1b8], 2
call fcn.10148e21
add esp, 0x18
cmp dword [esp + 0x5c], edi
mov byte [esp + 0x1a0], 1
jb 0x1006d55a
mov edx, dword [esp + 0x48]
push edx
call fcn.10149646
add esp, 4
lea eax, [esp + 0xd4]
push 5
push eax
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
call fcn.10148e21
lea ecx, [esp + 0xec]
push 8
push ecx
call fcn.10148e21
lea edx, [esp + 0x104]
push 0xc
push edx
call fcn.10148e21
add esp, 0x18
cmp dword [esp + 0xb4], edi
jb 0x1006d5b8
mov eax, dword [esp + 0xa0]
push eax
call fcn.10149646
add esp, 4
xor eax, eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov ecx, dword [esp + 0x1c]
cmp esi, dword [ecx + 4]
mov byte [esp + 0x1a0], 3
jne 0x1006d5eb
call fcn.10149775
mov ecx, dword [esi + 0x70]
mov edx, dword [ecx]
mov eax, dword [edx + 0x38]
call eax
cmp eax, 0xffffffff
mov dword [esp + 0x78], eax
je 0x1006d6a9
mov edi, dword [esp + 0x40]
mov eax, dword [edi + 4]
mov ecx, dword [eax]
lea edx, [esp + 0x68]
push edx
push eax
push edi
push ecx
lea eax, [esp + 0x48]
push edi
push eax
call fcn.10044440
mov ecx, dword [esp + 0x34]
add esp, 0x18
cmp esi, dword [ecx + 4]
jne 0x1006d62f
call fcn.10149775
mov ecx, dword [esi + 0x70]
mov edx, dword [ecx]
mov eax, dword [edx + 0x48]
call eax
mov ecx, dword [edi + 4]
mov dword [esp + 0x24], eax
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x38]
test eax, eax
mov dword [esp + 0x88], ecx
je 0x1006d65a
cmp eax, edi
je 0x1006d65f
call fcn.10149775
mov edx, dword [esp + 0x88]
cmp dword [esp + 0x3c], edx
jne 0x1006d67a
lea eax, [esp + 0x68]
push eax
mov ecx, edi
call fcn.10047b80
jmp 0x1006d6a9
push 0
lea ecx, [esp + 0x3c]
call fcn.10044200
mov ecx, eax
call fcn.10043d90
mov edi, dword [esp + 0x24]
cmp eax, edi
jae 0x1006d6a9
lea ecx, [esp + 0x38]
call fcn.10044200
lea ecx, [esp + 0x38]
mov dword [eax + 0x18], edi
call fcn.10044200
mov eax, dword [esp + 0x6c]
test eax, eax
mov byte [esp + 0x1a0], 0
je 0x1006d7dd
jmp 0x1006d7d4
cmp eax, 1
jne 0x1006d701
mov ecx, dword [esp + 0x12c]
add dword [ebx + 0x188], ecx
mov eax, dword [esp + 0x124]
mov edx, dword [esp + 0x1c]
adc dword [ebx + 0x18c], 0
add dword [esp + 0x30], eax
add dword [edi + 0x14], eax
cmp esi, dword [edx + 4]
jne 0x1006d6fe
call fcn.10149775
mov eax, dword [esp + 0x124]
mov dword [esi + 0x7c], eax
cmp dword [esp + 0x10c], 0
je 0x1006d7dd
mov eax, dword [esp + 0x108]
push eax
lea ecx, [esp + 0xa0]
push ecx
call fcn.100e595e
mov edx, dword [esp + 0x114]
push edx
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x1b0], 4
call fcn.100e4d2a
mov edi, 0x10
lea ecx, [esp + 0xfc]
push edi
push ecx
mov byte [esp + 0x1b8], 5
call fcn.10148e21
add esp, 0x18
cmp dword [esp + 0x5c], edi
mov byte [esp + 0x1a0], 4
jb 0x1006d777
mov edx, dword [esp + 0x48]
push edx
call fcn.10149646
add esp, 4
lea eax, [esp + 0xc4]
push 5
push eax
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
call fcn.10148e21
lea ecx, [esp + 0x104]
push 8
push ecx
call fcn.10148e21
lea edx, [esp + 0xdc]
push 0xc
push edx
call fcn.10148e21
add esp, 0x18
cmp dword [esp + 0xb4], edi
mov byte [esp + 0x1a0], 0
jb 0x1006d7dd
mov eax, dword [esp + 0xa0]
push eax
call fcn.10149646
add esp, 4
mov edi, dword [esp + 0x1c]
cmp esi, dword [edi + 4]
jne 0x1006d7eb
call fcn.10149775
cmp dword [esi + 0x40], 0
je 0x1006d839
cmp esi, dword [edi + 4]
jne 0x1006d7fb
call fcn.10149775
cmp word [esi + 0x44], 0
je 0x1006d839
cmp esi, dword [edi + 4]
jne 0x1006d80c
call fcn.10149775
add esi, 0x34
mov dword [esp + 0x9c], 0
mov ecx, 8
lea edi, [esp + 0xa0]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [ebx + 0x3c]
movsb byte es:[edi], byte [esi]
call fcn.10038090
lea ecx, [esp + 0x1c]
call fcn.100655d0
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
jmp 0x1006d370
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x1006d86c
mov ecx, dword [ebx + 0x34]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebx + 0xa0]
mov ecx, dword [esp + 0x28]
add edx, eax
mov eax, dword [esp + 0x34]
add dword [eax + 0x1c], ecx
add edx, ecx
add dword [eax + 0x18], edx
mov eax, dword [esp + 0x2c]
cmp eax, dword [ebx + 0x180]
jbe 0x1006d896
mov dword [ebx + 0x180], eax
mov eax, dword [esp + 0x30]
cmp eax, dword [ebx + 0x17c]
jbe 0x1006d8a8
mov dword [ebx + 0x17c], eax
mov esi, dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
lea edi, [ebx + 0xf4]
push edi
call esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
call edi
lea eax, [ebx + 0x160]
push eax
call esi
lea eax, [ebx + 0x160]
push eax
call edi
lea eax, [ebx + 0xd0]
push eax
call esi
lea eax, [ebx + 0xd0]
push eax
call edi
lea eax, [ebx + 0xac]
push eax
call esi
lea eax, [ebx + 0xac]
push eax
call edi
add ebx, 0x13c
push ebx
call esi
push ebx
call edi
cmp dword [esp + 0x14c], 0x10
jb 0x1006d91c
mov eax, dword [esp + 0x138]
push eax
call fcn.10149646
add esp, 4
mov ecx, dword [esp + 0x198]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x180]
xor ecx, esp
call fcn.10149c5e
mov esp, ebp
pop ebp
ret 8