Function at 0x408470
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f92d
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x47d144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
cmp byte [edi + 0xe], 0
jne 0x4087af
cmp byte [edi + 0xd], 0
jne 0x4087af
mov edx, dword [edi + 8]
cmp edx, 0xffffffff
je 0x4087af
mov esi, dword [edi]
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x4084cd
mov eax, dword [esi + 8]
add eax, edx
jmp 0x4084cf
xor eax, eax
mov al, byte [eax]
cmp al, 5
jne 0x4087af
mov ecx, dword [ebp + 0xc]
cmp byte [ecx + 0xe], 0
jne 0x408516
cmp byte [ecx + 0xd], 0
jne 0x4087af
mov edi, dword [ecx + 8]
cmp edi, 0xffffffff
je 0x4087af
mov eax, dword [ecx]
cmp dword [eax + 0x10], 0
je 0x408507
mov eax, dword [eax + 8]
add eax, edi
jmp 0x408509
xor eax, eax
mov al, byte [eax]
cmp al, 3
jne 0x4087af
mov edi, dword [ebp - 0x10]
test ebx, ebx
je 0x408521
mov eax, dword [esi + 8]
add eax, edx
jmp 0x408523
xor eax, eax
lea esi, [eax + 1]
push ecx
lea eax, [ebp - 0x64]
mov dword [ebp - 0x28], esi
push eax
call fcn.00408a10
mov dword [ebp - 4], 0
cmp byte [edi + 0xf], 0
je 0x408573
cmp dword [ebp - 0x50], 0
je 0x408551
cmp dword [ebp - 0x54], 0
jne 0x408551
mov ecx, dword [ebp - 0x4c]
jmp 0x4085a2
lea ecx, [ebp - 0x64]
call fcn.00409290
mov ecx, eax
test ecx, ecx
je 0x4085a0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408562
sub ecx, edx
sar ecx, 1
jmp 0x4085a2
cmp dword [ebp - 0x54], 0
je 0x408584
cmp dword [ebp - 0x50], 0
jne 0x408584
mov ecx, dword [ebp - 0x4c]
jmp 0x4085a2
lea ecx, [ebp - 0x64]
call fcn.004093d0
mov ecx, eax
test ecx, ecx
je 0x4085a0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408595
sub ecx, edx
jmp 0x4085a2
xor ecx, ecx
cmp byte [edi + 0xf], 0
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x64]
je 0x4085b5
call fcn.00409290
jmp 0x4085ba
call fcn.004093d0
mov dword [ebp - 0x2c], eax
mov al, byte [edi + 0xf]
mov dword [ebp - 0x24], eax
test al, al
mov eax, dword [ebp - 0x14]
je 0x4085cc
add eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
mov ebx, dword [esi]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], ebx
cmp ebx, 0x20
ja 0x408649
xor esi, esi
test ebx, ebx
je 0x408788
jmp 0x408600
push esi
lea ecx, [ebp - 0x48]
call fcn.00408820
test eax, eax
je 0x408617
inc esi
cmp esi, ebx
jb 0x408600
jmp 0x408788
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
push dword [eax + esi*8 + 8]
push edi
call fcn.00407ee0
lea ecx, [ebp - 0x64]
call fcn.00407e00
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp ebx, 0x100
ja 0x4086b5
lea eax, [esi + 4]
mov esi, ebx
lea eax, [eax + ebx*8]
mov dword [ebp - 0x34], eax
mov ecx, eax
mov dword [ebp - 0x18], ecx
test esi, esi
jle 0x4086a3
mov ebx, eax
mov edi, esi
lea ecx, [ebp - 0x48]
shr edi, 1
lea eax, [edi + ebx]
mov dword [ebp - 0x20], eax
movzx eax, byte [eax]
push eax
call fcn.00408820
test eax, eax
jns 0x40868e
mov ebx, dword [ebp - 0x20]
or eax, 0xffffffff
sub eax, edi
inc ebx
add esi, eax
jmp 0x408690
mov esi, edi
test esi, esi
jg 0x408667
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
add eax, ebx
cmp ecx, eax
je 0x408788
movzx esi, byte [ecx]
jmp 0x408772
lea eax, [ebx*8 + 4]
add eax, esi
mov dword [ebp - 0x20], eax
mov ecx, eax
mov dword [ebp - 0x18], ecx
cmp ebx, 0x10000
ja 0x408722
lea eax, [ebx + ebx]
mov esi, eax
mov dword [ebp - 0x34], eax
sar esi, 1
test esi, esi
jle 0x408716
lea esp, [esp]
mov edi, esi
shr edi, 1
movzx eax, word [ecx + edi*2]
lea ebx, [ecx + edi*2]
push eax
lea ecx, [ebp - 0x48]
call fcn.00408820
test eax, eax
jns 0x408707
or eax, 0xffffffff
lea ecx, [ebx + 2]
sub eax, edi
mov dword [ebp - 0x18], ecx
add esi, eax
jmp 0x40870c
mov ecx, dword [ebp - 0x18]
mov esi, edi
test esi, esi
jg 0x4086e0
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x20]
cmp ecx, eax
je 0x408788
movzx esi, word [ecx]
jmp 0x408772
lea eax, [ebx*4]
mov esi, eax
mov dword [ebp - 0x34], eax
sar esi, 2
test esi, esi
jle 0x408769
mov edi, esi
shr edi, 1
push dword [ecx + edi*4]
lea ebx, [ecx + edi*4]
lea ecx, [ebp - 0x48]
call fcn.00408820
test eax, eax
jns 0x40875a
or eax, 0xffffffff
lea ecx, [ebx + 4]
sub eax, edi
mov dword [ebp - 0x18], ecx
add esi, eax
jmp 0x40875f
mov ecx, dword [ebp - 0x18]
mov esi, edi
test esi, esi
jg 0x408735
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x20]
cmp ecx, eax
je 0x408788
mov esi, dword [ecx]
cmp esi, 0xffffffff
je 0x408788
push esi
lea ecx, [ebp - 0x48]
call fcn.00408820
test eax, eax
je 0x408617
mov ecx, dword [ebp + 8]
call fcn.00407f70
lea ecx, [ebp - 0x64]
call fcn.00407e00
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0xffffffff
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8