Function at 0x1001d8b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x10070668
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1007bf74]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x30], edi
mov esi, dword [esp + 0xc8]
mov eax, dword [edi + 8]
mov ecx, dword [esi + 0xc]
mov ebx, dword [eax + 0x3f4]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
mov dword [esp + 0x8c], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], ebx
mov byte [esp + 0x16], 0
mov byte [esp + 0x17], 0
call eax
add eax, dword [esp + 0xcc]
add eax, dword [esi]
cmp dword [0x1007a11c], 0
mov esi, dword [esp + 0xc4]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x18], esi
je 0x1001d96a
mov ecx, dword [edi + 8]
mov eax, dword [ecx + 0x58]
mov edx, dword [esp + 0xdc]
mov ecx, dword [edx + 8]
mov byte [esp + 0xb0], 1
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xb8], eax
mov ecx, dword [edi + 8]
imul ebx, ebx, 0x4b0
push 1
push ebx
add ecx, 0x564
call fcn.1000b210
mov ecx, dword [edi + 8]
push 1
mov ebx, eax
push 0x960
add ecx, 0x55c
mov dword [esp + 0x4c], ebx
call fcn.1000b210
test eax, eax
mov dword [esp + 0x48], eax
je 0x1001ddea
test ebx, ebx
je 0x1001ddea
mov edx, dword [esp + 0xdc]
push edx
push 5
mov ecx, edi
call fcn.10018c80
xor bl, bl
test esi, esi
mov dword [esp + 0x54], eax
mov byte [esp + 0x15], bl
jbe 0x1001dde4
mov eax, dword [esp + 0x94]
mov edx, dword [eax + 8]
lea ecx, [esp + 0x94]
call edx
test ax, 0xfff
jne 0x1001da26
cmp byte [esp + 0xb0], 0
je 0x1001da4c
mov eax, dword [esp + 0x94]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x94]
call edx
test ax, 0xfff0
jne 0x1001da4c
mov eax, dword [esp + 0x94]
mov edx, dword [eax + 0x14]
lea ecx, [esp + 0x94]
call edx
test eax, eax
je 0x1001da4c
mov eax, dword [esp + 0x94]
mov edx, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x98]
call edx
sub dword [esp + 0x18], 1
xor bl, 1
mov byte [esp + 0x15], bl
jmp 0x1001ddd9
mov eax, dword [esp + 0x94]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x94]
xor esi, esi
call edx
test ax, 0xfff0
sete cl
test cl, cl
jne 0x1001da8a
mov eax, dword [esp + 0xac]
mov dx, word [eax + 4]
or dx, word [eax + 2]
mov byte [esp + 0x16], 1
or dx, word [eax]
movzx eax, dx
mov dword [esp + 0x1c], eax
test cl, cl
mov ebp, dword [esp + 0x9c]
je 0x1001db5a
lea esp, [esp]
cmp dword [esp + 0x18], esi
jbe 0x1001db0e
cmp bl, 1
jne 0x1001daaf
test esi, esi
je 0x1001daea
mov edx, dword [esp + 0x94]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x94]
call eax
test ax, 0xfff0
sete al
test al, al
je 0x1001db0e
mov edx, dword [esp + 0x94]
mov eax, dword [edx + 0xc]
push 0
lea ecx, [esp + 0x98]
add esi, 1
call eax
xor bl, 1
jmp 0x1001daa0
mov eax, dword [esp + 0xac]
mov cx, word [eax + 4]
or cx, word [eax + 2]
mov byte [esp + 0x15], bl
or cx, word [eax]
mov byte [esp + 0x16], 1
movzx edx, cx
mov dword [esp + 0x1c], edx
jmp 0x1001db65
test esi, esi
mov byte [esp + 0x15], bl
je 0x1001db5a
cmp byte [esp + 0x17], 0
je 0x1001db32
mov eax, dword [esp + 0xc8]
mov ecx, dword [edi + 0xc]
push eax
call fcn.100156d0
mov byte [esp + 0x17], 0
mov ecx, dword [esp + 0xc8]
mov eax, dword [ecx]
mov edx, dword [edi + 8]
mov ecx, dword [edx]
add eax, ebp
add eax, dword [esp + 0xcc]
push esi
push eax
push 5
call fcn.10005a70
sub dword [esp + 0x18], esi
mov dword [esp + 0x3c], eax
cmp byte [esp + 0x16], 0
je 0x1001ddd9
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x40], eax
mov eax, 0x4b0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
xor eax, eax
cmp dword [esp + 0x18], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], eax
jbe 0x1001dd81
cmp byte [esp + 0x16], 1
je 0x1001dbe6
mov edx, dword [esp + 0x94]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x94]
call eax
mov edx, dword [esp + 0x94]
movzx esi, ax
mov eax, dword [edx + 8]
lea ecx, [esp + 0x94]
mov dword [esp + 0x1c], esi
call eax
and ax, 0xfff
test esi, 0xfff0
movzx eax, ax
je 0x1001dd81
test ax, ax
jne 0x1001dd81
mov eax, 0x19
cmp dword [esp + 0x28], eax
jb 0x1001dd81
cmp dword [esp + 0x2c], eax
jb 0x1001dd81
mov ecx, dword [esp + 0xc8]
mov edx, dword [ecx + 0xc]
cmp dword [edx + 0x24], 1
mov edi, dword [esp + 0xc0]
mov ebp, dword [esp + 0xa0]
mov esi, dword [esp + 0x98]
sete al
mov byte [esp + 0x50], al
xor ecx, ecx
mov eax, ecx
sub eax, 0
je 0x1001dc58
sub eax, 1
je 0x1001dc4a
sub eax, 1
je 0x1001dc40
xor eax, eax
jmp 0x1001dc5a
lea eax, [edi + 1]
imul eax, ebp
add eax, esi
jmp 0x1001dc5a
mov eax, 2
sub eax, edi
imul eax, ebp
add eax, esi
jmp 0x1001dc5a
mov eax, esi
mov dword [esp + ecx*4 + 0x64], eax
sub eax, dword [esp + 0x4c]
xor edx, edx
div dword [esp + 0x20]
add ecx, 1
cmp ecx, 3
mov dword [esp + ecx*4 + 0x70], eax
jb 0x1001dc2b
cmp ecx, 4
jae 0x1001dc98
lea esp, [esp]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x74]
mov dword [esp + ecx*4 + 0x64], edx
mov dword [esp + ecx*4 + 0x74], eax
add ecx, 1
cmp ecx, 4
jb 0x1001dc80
mov ecx, dword [esp + 0xe0]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0xe0]
push edx
mov edx, dword [esp + 0xe0]
push eax
push ecx
push ebx
push edx
push 3
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x94]
push ecx
mov ecx, dword [esp + 0x54]
call fcn.100186d0
mov edi, dword [esp + 0x54]
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 0
push ebx
mov ecx, edi
call eax
mov ebp, dword [esp + 0x40]
mov edx, dword [edi]
mov edx, dword [edx + 8]
movzx esi, word [esp + 0x24]
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x60]
push ecx
lea eax, [esp + 0x60]
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x30]
push ecx
push ebp
push eax
mov ecx, edi
call edx
test eax, eax
je 0x1001dd4b
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x58]
add dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x5c]
sub eax, esi
movzx eax, ax
movzx eax, ax
add dword [esp + 0x38], eax
sub dword [esp + 0x28], eax
mov edx, eax
imul edx, dword [esp + 0x20]
add ebx, edx
sub dword [esp + 0x2c], ecx
lea edx, [ebp + ecx*2]
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x94]
mov edx, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x98]
call edx
mov eax, dword [esp + 0x18]
xor byte [esp + 0x15], 1
mov edi, dword [esp + 0x30]
sub eax, 1
test eax, eax
mov dword [esp + 0x18], eax
mov byte [esp + 0x16], 0
ja 0x1001db96
cmp dword [0x1007a130], 0
je 0x1001ddd5
mov esi, dword [esp + 0x34]
test esi, esi
jbe 0x1001ddd5
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 8]
push eax
push ecx
mov ecx, dword [edx]
push 0
call fcn.10005910
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x60]
push 0
push eax
mov eax, dword [edi + 8]
push 2
push esi
push 0
push ecx
mov ecx, dword [eax]
push 0
push 0
push edx
call fcn.10005ad0
mov dword [esp + 0x3c], eax
mov byte [esp + 0x17], 1
mov bl, byte [esp + 0x15]
cmp dword [esp + 0x18], 0
ja 0x1001d9d3
mov eax, dword [esp + 0x3c]
jmp 0x1001ddef
mov eax, 0x8007000e
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret 0x50