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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c30bb
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e880c]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x18], ebx
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea esi, [ebx + 0xc]
mov byte [ebx + 0x19], 1
mov ecx, dword [esi + 4]
mov edi, dword [ecx]
mov edx, ecx
mov dword [esp + 0xb0], eax
mov byte [esp + 0x17], al
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x48], edx
lea esp, [esp]
cmp esi, eax
je 0x47013b
lea eax, [ebx + 0xc]
cmp esi, eax
je 0x470140
call fcn.0048c687
cmp edi, dword [esp + 0x48]
jne 0x470157
cmp byte [esp + 0x17], 0
je 0x4705ca
mov ebx, dword [esp + 0x18]
jmp 0x47015e
cmp byte [esp + 0x17], 0
je 0x470174
lea ecx, [esp + 0x30]
call fcn.0041bdd0
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov byte [esp + 0x17], 0
test esi, esi
jne 0x47017d
call fcn.0048c687
cmp edi, dword [esi + 4]
jne 0x470187
call fcn.0048c687
push ebx
lea ecx, [edi + 0x14]
call fcn.00470040
test eax, eax
jne 0x4701ab
cmp edi, dword [esi + 4]
jne 0x47019e
call fcn.0048c687
add edi, 0xc
push edi
lea ecx, [esp + 0x24]
call fcn.0044fc10
cmp byte [ebx + 0x18], 0
je 0x4705b2
mov esi, dword [ebx + 0x20]
cmp esi, dword [ebx + 0x24]
lea edi, [ebx + 0x1c]
jbe 0x4701c5
call fcn.0048c687
mov eax, dword [edi + 8]
cmp dword [edi + 4], eax
mov ebp, edi
mov dword [esp + 0x88], ebp
mov dword [esp + 0x1c], eax
jbe 0x4701e0
call fcn.0048c687
nop
test ebp, ebp
je 0x4701eb
lea eax, [ebx + 0x1c]
cmp ebp, eax
je 0x4701f0
call fcn.0048c687
cmp esi, dword [esp + 0x1c]
je 0x47033e
test ebp, ebp
jne 0x470203
call fcn.0048c687
cmp esi, dword [ebp + 8]
jb 0x47020d
call fcn.0048c687
cmp byte [esi + 0x14], 0
je 0x47026f
cmp esi, dword [ebp + 8]
jb 0x470227
call fcn.0048c687
cmp esi, dword [ebp + 8]
jb 0x470227
call fcn.0048c687
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, eax
mov dword [esp + 0x5c], eax
mov eax, ecx
mov dword [esp + 0x60], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x64], edx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x6c], ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x70], edx
push ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 0x10]
lea edx, [esp + 0x9c]
push edx
lea ecx, [ebx + 0xc]
mov dword [esp + 0x7c], eax
call fcn.0046edc0
jmp 0x47032c
cmp esi, dword [ebp + 8]
jb 0x470279
call fcn.0048c687
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx + 4]
cmp byte [eax + 0x29], 0
mov edx, dword [esi]
mov ebp, dword [esi + 4]
mov dword [esp + 0x40], ecx
jne 0x4702af
mov edi, edi
mov ecx, dword [eax + 0xc]
cmp ecx, edx
ja 0x47029e
jb 0x4702a6
cmp ebp, dword [eax + 0x10]
jae 0x4702a6
mov dword [esp + 0x40], eax
mov eax, dword [eax]
jmp 0x4702a9
mov eax, dword [eax + 8]
cmp byte [eax + 0x29], 0
je 0x470290
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx + 4]
cmp byte [eax + 0x29], 0
mov edi, ecx
jne 0x4702dd
lea ecx, [ecx]
mov ecx, dword [eax + 0xc]
cmp edx, ecx
ja 0x4702ce
jb 0x4702d3
cmp dword [eax + 0x10], ebp
jae 0x4702d3
mov eax, dword [eax + 8]
jmp 0x4702d7
mov edi, eax
mov eax, dword [eax]
cmp byte [eax + 0x29], 0
je 0x4702c0
lea eax, [ebx + 0xc]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edi
test eax, eax
je 0x4702f3
lea ecx, [ebx + 0xc]
cmp eax, ecx
je 0x4702f8
call fcn.0048c687
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x50], eax
je 0x470311
lea ecx, [esp + 0x4c]
call fcn.00424110
mov eax, dword [esp + 0x4c]
jmp 0x4702e8
push eax
lea ecx, [ebx + 0xc]
push ecx
push edi
push ecx
lea eax, [esp + 0xa0]
push eax
call fcn.0046eea0
mov ebp, dword [esp + 0x88]
cmp esi, dword [ebp + 8]
jb 0x470336
call fcn.0048c687
add esi, 0x18
jmp 0x4701e0
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x4705ae
mov ecx, dword [ebx + 0x24]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x4705ae
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
cmp edx, eax
mov esi, edx
jbe 0x470380
call fcn.0048c687
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
cmp edx, eax
lea ecx, [esp + 0x20]
mov edi, ecx
mov dword [esp + 0x54], edi
mov dword [esp + 0x1c], eax
jbe 0x470397
call fcn.0048c687
test edi, edi
je 0x4703a3
lea edx, [esp + 0x20]
cmp edi, edx
je 0x4703a8
call fcn.0048c687
cmp esi, dword [esp + 0x1c]
je 0x470483
test edi, edi
jne 0x4703bb
call fcn.0048c687
cmp esi, dword [edi + 8]
jb 0x4703c5
call fcn.0048c687
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx + 4]
cmp byte [eax + 0x29], 0
mov ebp, ecx
jne 0x4703f5
mov edx, dword [esi]
mov ecx, dword [eax + 0xc]
cmp ecx, edx
ja 0x4703e6
jb 0x4703ec
mov ecx, dword [esi + 4]
cmp ecx, dword [eax + 0x10]
jae 0x4703ec
mov ebp, eax
mov eax, dword [eax]
jmp 0x4703ef
mov eax, dword [eax + 8]
cmp byte [eax + 0x29], 0
je 0x4703d5
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx + 4]
cmp byte [eax + 0x29], 0
mov edi, ecx
jne 0x470425
mov edx, dword [esi]
mov ecx, dword [eax + 0xc]
cmp edx, ecx
ja 0x470416
jb 0x47041b
mov ecx, dword [eax + 0x10]
cmp ecx, dword [esi + 4]
jae 0x47041b
mov eax, dword [eax + 8]
jmp 0x47041f
mov edi, eax
mov eax, dword [eax]
cmp byte [eax + 0x29], 0
je 0x470405
lea eax, [ebx + 0xc]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edi
test eax, eax
je 0x47043b
lea ecx, [ebx + 0xc]
cmp eax, ecx
je 0x470440
call fcn.0048c687
cmp dword [esp + 0x3c], ebp
je 0x470455
lea ecx, [esp + 0x38]
call fcn.00424110
mov eax, dword [esp + 0x38]
jmp 0x470430
push ebp
lea ecx, [ebx + 0xc]
push ecx
push edi
push ecx
lea edx, [esp + 0x88]
push edx
call fcn.0046eea0
mov eax, dword [esp + 0x54]
cmp esi, dword [eax + 8]
jb 0x470477
call fcn.0048c687
mov edi, dword [esp + 0x54]
add esi, 8
jmp 0x470397
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
cmp edi, edx
mov esi, edx
jbe 0x4704ab
call fcn.0048c687
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
cmp edi, edx
jbe 0x4704ab
call fcn.0048c687
mov edx, dword [esp + 0x28]
cmp edi, esi
je 0x4704da
mov ecx, edx
sub ecx, esi
sar ecx, 3
cmp esi, edx
lea ebp, [edi + ecx*8]
mov eax, esi
je 0x4704d6
mov ecx, edi
sub ecx, esi
mov esi, dword [eax]
mov dword [ecx + eax], esi
mov esi, dword [eax + 4]
mov dword [ecx + eax + 4], esi
add eax, 8
cmp eax, edx
jne 0x4704c3
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x18]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x24]
cmp dword [ebp + 0x20], esi
mov ebx, dword [edx]
lea eax, [ebp + 0xc]
mov edi, edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x84], edi
mov dword [esp + 0x48], edi
jbe 0x470508
call fcn.0048c687
mov ebp, dword [ebp + 0x20]
mov eax, dword [esp + 0x18]
cmp ebp, dword [eax + 0x24]
jbe 0x470519
call fcn.0048c687
cmp ebp, esi
je 0x470591
mov eax, dword [esp + 0x18]
mov edi, dword [eax + 0x24]
add eax, 0x1c
mov ecx, edi
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, edi
lea ecx, [eax + eax*2]
lea edx, [ebp + ecx*8]
mov eax, esi
je 0x470580
mov ecx, ebp
sub ecx, esi
mov esi, dword [eax]
mov dword [ecx + eax], esi
mov esi, dword [eax + 4]
mov dword [ecx + eax + 4], esi
mov esi, dword [eax + 8]
mov dword [ecx + eax + 8], esi
mov esi, dword [eax + 0xc]
mov dword [ecx + eax + 0xc], esi
mov esi, dword [eax + 0x10]
mov dword [ecx + eax + 0x10], esi
mov esi, dword [eax + 0x14]
mov dword [ecx + eax + 0x14], esi
add eax, 0x18
cmp eax, edi
jne 0x470551
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x84]
add eax, 0x1c
mov dword [eax + 8], edx
mov eax, dword [esp + 0x18]
add eax, 0xc
cmp eax, eax
je 0x4705a1
call fcn.0048c687
cmp ebx, edi
je 0x4705ca
mov ebx, dword [esp + 0x18]
mov byte [esp + 0x17], 1
mov byte [ebx + 0x18], 0
lea ecx, [esp + 0x30]
call fcn.00424110
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
xor eax, eax
jmp 0x470130
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
cmp edx, ecx
mov esi, edx
jbe 0x4705e5
call fcn.0048c687
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
cmp edx, ecx
lea eax, [esp + 0x20]
mov edi, eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x1c], ecx
jbe 0x470600
call fcn.0048c687
lea esp, [esp]
test edi, edi
je 0x47060c
lea edx, [esp + 0x20]
cmp edi, edx
je 0x470611
call fcn.0048c687
cmp esi, dword [esp + 0x1c]
je 0x470703
test edi, edi
jne 0x470624
call fcn.0048c687
cmp esi, dword [edi + 8]
jb 0x47062e
call fcn.0048c687
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x10]
add eax, 0xc
mov eax, dword [ecx + 4]
cmp byte [eax + 0x29], 0
mov ebp, ecx
jne 0x470665
mov edx, dword [esi]
mov ecx, dword [eax + 0xc]
cmp ecx, edx
ja 0x470656
jb 0x47065c
mov ecx, dword [esi + 4]
cmp ecx, dword [eax + 0x10]
jae 0x47065c
mov ebp, eax
mov eax, dword [eax]
jmp 0x47065f
mov eax, dword [eax + 8]
cmp byte [eax + 0x29], 0
je 0x470645
mov ebx, dword [esp + 0x18]
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx + 4]
cmp byte [eax + 0x29], 0
mov edi, ecx
jne 0x4706a0
mov edx, dword [esi]
lea esp, [esp]
mov ecx, dword [eax + 0xc]
cmp edx, ecx
ja 0x470691
jb 0x470696
mov ecx, dword [eax + 0x10]
cmp ecx, dword [esi + 4]
jae 0x470696
mov eax, dword [eax + 8]
jmp 0x47069a
mov edi, eax
mov eax, dword [eax]
cmp byte [eax + 0x29], 0
je 0x470680
lea eax, [ebx + 0xc]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edi
jmp 0x4706b0
test eax, eax
je 0x4706bb
lea ecx, [ebx + 0xc]
cmp eax, ecx
je 0x4706c0
call fcn.0048c687
cmp dword [esp + 0x3c], ebp
je 0x4706d5
lea ecx, [esp + 0x38]
call fcn.00424110
mov eax, dword [esp + 0x38]
jmp 0x4706b0
push ebp
lea ecx, [ebx + 0xc]
push ecx
push edi
push ecx
lea edx, [esp + 0x88]
push edx
call fcn.0046eea0
mov eax, dword [esp + 0x44]
cmp esi, dword [eax + 8]
jb 0x4706f7
call fcn.0048c687
mov edi, dword [esp + 0x44]
add esi, 8
jmp 0x470600
mov eax, dword [esp + 0x24]
test eax, eax
mov ecx, dword [esp + 0x18]
mov byte [ecx + 0x19], 0
je 0x47071c
push eax
call fcn.0048c049
add esp, 4
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret