Function at 0x1001c500
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a6dbe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
cmp dword [ebp + 0xc], 0xb
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0xe4], 0
jge 0x1001c5d3
mov esi, dword [0x100dd480]
sub esi, dword [0x100dd47c]
mov eax, 0x63e7063f
imul esi
mov esi, dword [ebp - 0x34]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x1001c5d3
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x63e7063f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [0x100dcf2c]
jae 0x1001c5d3
mov eax, dword [0x100ddb74]
test al, 1
jne 0x1001c5a0
or eax, 1
mov dword [0x100ddb74], eax
call fcn.1003e5e0
mov dword [0x100ddb1c], eax
jmp 0x1001c5a5
mov eax, dword [0x100ddb1c]
call eax
sub eax, dword [ebp + 0x10]
cmp eax, 0x1388
jbe 0x1001c5ee
mov ecx, str.ZVpcEEwSVQgXU01YQEZfRUwNWVtDBBddXQgZBUxdFhVZEkcLVVdZFBEe
call fcn.10045550
sub esp, 0x18
mov ecx, esp
push eax
call fcn.100020e0
mov ecx, 3
call fcn.1002bd20
add esp, 0x18
push edi
mov ecx, ebx
call fcn.1000a360
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
lea ecx, [ebp - 0xe0]
call fcn.1000a360
push edi
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], 0
call fcn.1000a360
mov edi, esi
imul edi, edi, 0x148
mov byte [ebp - 4], 1
add edi, dword [0x100dd47c]
mov byte [ebp - 0xd], 1
xor ebx, ebx
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
mov dword [ebp - 0x38], ebx
call fcn.1000a150
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, dword [ebp - 0x28]
sar ecx, 2
cmp ebx, ecx
setb byte [ebp - 0xe]
test eax, eax
je 0x1001c666
push eax
call fcn.100852d7
add esp, 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
cmp byte [ebp - 0xe], 0
je 0x1001c733
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.1000a150
mov eax, dword [eax]
mov esi, dword [eax + ebx*4]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], esi
test eax, eax
je 0x1001c6a8
push eax
call fcn.100852d7
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov ecx, esi
call fcn.10019200
mov esi, eax
mov dword [ebp - 0x30], esi
cmp esi, 0xffffffff
je 0x1001c729
mov ecx, dword [ebp - 0x2c]
call fcn.1002b100
mov ebx, eax
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebx + 0x28]
lea edx, [eax + esi*4]
mov dword [ebp - 0x2c], edx
test ecx, ecx
jne 0x1001c6da
xor eax, eax
jmp 0x1001c6ff
cmp dword [ebx + 0x1c], 0xffffffff
jne 0x1001c6fc
mov edx, dword [0x100dd83c]
call fcn.100277a0
test eax, eax
je 0x1001c6f4
mov eax, dword [eax + 0x14]
jmp 0x1001c6f6
xor eax, eax
mov edx, dword [ebp - 0x2c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx + 0x1c]
cmp dword [edx], eax
jge 0x1001c72f
mov eax, dword [ebp - 0xbc]
mov ecx, ebx
lea esi, [eax + esi*4]
call fcn.1002b610
cmp dword [esi], eax
jge 0x1001c72f
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0x30]
cmp dword [eax + ecx*4], 0
jg 0x1001c72f
mov ebx, dword [ebp - 0x38]
inc ebx
jmp 0x1001c625
mov byte [ebp - 0xd], 0
xor esi, esi
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.1000a170
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sar ecx, 2
cmp esi, ecx
setb bl
test eax, eax
je 0x1001c772
push eax
call fcn.100852d7
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test bl, bl
je 0x1001c7cd
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.1000a170
mov eax, dword [eax]
mov ecx, dword [eax + esi*4]
call fcn.10019200
mov ebx, eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1001c7b2
push eax
call fcn.100852d7
add esp, 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
cmp ebx, 0xffffffff
je 0x1001c7c7
mov eax, dword [ebp - 0xb0]
cmp dword [eax + ebx*4], 0
jg 0x1001c9b9
inc esi
jmp 0x1001c735
cmp byte [ebp - 0xd], 0
je 0x1001c9b9
mov ecx, edi
call fcn.1002aef0
test al, al
je 0x1001c9b9
mov eax, dword [edi + 0x110]
add dword [ebp - 0x98], eax
push edi
lea ecx, [ebp - 0xd4]
call fcn.10022720
xor esi, esi
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.1000a150
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sar ecx, 2
cmp esi, ecx
setb bl
test eax, eax
je 0x1001c83d
push eax
call fcn.100852d7
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test bl, bl
je 0x1001c895
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.1000a150
mov eax, dword [eax]
mov ecx, dword [eax + esi*4]
call fcn.10019200
mov ebx, eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1001c87d
push eax
call fcn.100852d7
add esp, 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0xbc]
inc dword [eax + ebx*4]
mov eax, dword [ebp - 0xb0]
inc dword [eax + ebx*4]
inc esi
jmp 0x1001c800
xor esi, esi
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.1000a170
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sar ecx, 2
cmp esi, ecx
setb bl
test eax, eax
je 0x1001c8d4
push eax
call fcn.100852d7
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test bl, bl
je 0x1001c923
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.1000a170
mov eax, dword [eax]
mov ecx, dword [eax + esi*4]
call fcn.10019200
mov ebx, eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1001c914
push eax
call fcn.100852d7
add esp, 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0xa4]
inc dword [eax + ebx*4]
inc esi
jmp 0x1001c897
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x34]
inc eax
push eax
lea eax, [ebp - 0xe0]
push eax
inc edx
lea ecx, [ebp - 0x130]
call fcn.1001c500
add esp, 0xc
mov esi, eax
push esi
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 2
call fcn.10022590
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0xd4]
call fcn.10022590
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp - 0xc8]
call fcn.10022590
lea eax, [esi + 0x24]
push eax
lea ecx, [ebp - 0xbc]
call fcn.100222f0
lea eax, [esi + 0x30]
push eax
lea ecx, [ebp - 0xb0]
call fcn.100222f0
lea eax, [esi + 0x3c]
push eax
lea ecx, [ebp - 0xa4]
call fcn.100222f0
mov eax, dword [esi + 0x48]
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 1
call fcn.1000fa30
mov ecx, dword [ebp - 0x74]
cmp edi, ecx
jae 0x1001ca07
mov ebx, dword [ebp - 0x78]
cmp ebx, edi
ja 0x1001ca07
sub edi, ebx
mov eax, 0x63e7063f
imul edi
sar edx, 7
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp ecx, dword [ebp - 0x70]
jne 0x1001c9ee
push ecx
lea ecx, [ebp - 0x78]
call fcn.10023260
mov ecx, dword [ebp - 0x74]
mov ebx, dword [ebp - 0x78]
imul esi, esi, 0x148
add esi, ebx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 3
test ecx, ecx
je 0x1001ca2f
push esi
jmp 0x1001ca27
cmp ecx, dword [ebp - 0x70]
jne 0x1001ca18
push ecx
lea ecx, [ebp - 0x78]
call fcn.10023260
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 4
test ecx, ecx
je 0x1001ca2f
push edi
call fcn.10024d80
mov ecx, dword [ebp - 0x74]
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x34]
inc eax
add ecx, 0x148
push eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x90]
mov dword [ebp - 0x74], ecx
push eax
lea edx, [edx + 1]
lea ecx, [ebp - 0x130]
call fcn.1001c500
add esp, 0xc
mov esi, eax
push esi
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 5
call fcn.10022590
lea ecx, [esi + 0xc]
push ecx
lea ecx, [ebp - 0x84]
call fcn.10022590
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp - 0x78]
call fcn.10022590
lea eax, [esi + 0x24]
push eax
lea ecx, [ebp - 0x6c]
call fcn.100222f0
lea eax, [esi + 0x30]
push eax
lea ecx, [ebp - 0x60]
call fcn.100222f0
lea eax, [esi + 0x3c]
push eax
lea ecx, [ebp - 0x54]
call fcn.100222f0
mov eax, dword [esi + 0x48]
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 1
call fcn.1000fa30
mov eax, dword [ebp - 0x98]
cmp eax, dword [ebp - 0x48]
lea edx, [ebp - 0x90]
lea ecx, [ebp - 0xe0]
cmovl ecx, edx
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.1000a360
lea ecx, [ebp - 0x90]
call fcn.1000fa30
lea ecx, [ebp - 0xe0]
call fcn.1000fa30
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x3c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret