Function at 0x46836c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe74
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404be0
xor eax, eax
push ebp
push 0x468826
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x468810
xor edx, edx
push ebp
push 0x468801
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 8]
call fcn.004682f8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18b]
mov edx, 0x1e
call fcn.004076a4
push pe_nt_image_headers32
push 0x1000
mov eax, dword [ebp - 0x14]
push eax
push 0
call fcn.00406ebc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x468400
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x468810
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x54]
mov edx, dword [ebp - 0x30]
lea esi, [edx + 0x18]
mov edx, dword [ebp - 0x30]
movzx edx, word [edx + 0x14]
add esi, edx
mov edx, dword [ebp - 0x30]
movzx edi, word [edx + 6]
dec edi
test edi, edi
jb 0x46843e
inc edi
xor ebx, ebx
lea edx, [ebx + ebx*4]
cmp eax, dword [esi + edx*8 + 0x14]
jbe 0x46843a
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0x14]
inc ebx
dec edi
jne 0x46842a
mov ecx, eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
call fcn.00407690
lea eax, [ebp - 0x18b]
mov edx, 0x14
call fcn.004076a4
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x54]
call fcn.004682d8
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
movzx eax, word [eax + 6]
mov edi, eax
dec edi
test edi, edi
jb 0x46850d
inc edi
xor ebx, ebx
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0x10]
test eax, eax
jbe 0x4684e0
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0x10]
lea edx, [ebx + ebx*4]
cmp eax, dword [esi + edx*8 + 8]
jbe 0x4684ab
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 8]
jmp 0x4684b2
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0x10]
lea edx, [ebx + ebx*4]
mov edx, dword [esi + edx*8 + 0x14]
add edx, dword [ebp - 8]
mov ecx, eax
mov eax, dword [ebp - 0x1c]
call fcn.00407690
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 8]
mov edx, dword [ebp - 0x30]
mov edx, dword [edx + 0x38]
call fcn.004682d8
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
jmp 0x468505
lea eax, [ebx + ebx*4]
cmp dword [esi + eax*8 + 8], 0
jne 0x4684ed
nop
jmp 0x468505
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 8]
mov edx, dword [ebp - 0x30]
mov edx, dword [edx + 0x38]
call fcn.004682d8
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
inc ebx
dec edi
jne 0x468487
lea eax, [ebp - 0x140]
mov edx, 0x44
call fcn.004076a4
lea eax, [ebp - 0xfc]
mov edx, 0xcc
call fcn.004076a4
lea eax, [ebp - 0x18b]
mov edx, 0xa
call fcn.004076a4
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x140]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404bf0
push eax
push 0
mov eax, dword [0x47bb8c]
mov eax, dword [eax]
call eax
test eax, eax
je 0x4687f7
mov dword [ebp - 0xfc], 0x10007
lea eax, [ebp - 0xfc]
push eax
mov eax, dword [ebp - 0x14c]
push eax
mov eax, dword [0x47bd6c]
mov eax, dword [eax]
call eax
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x58]
add eax, 8
push eax
mov eax, dword [ebp - 0x150]
push eax
mov eax, dword [0x47b934]
mov eax, dword [eax]
call eax
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x18b]
mov edx, 0x16
call fcn.004076a4
jmp 0x4685fe
lea eax, [ebp - 0x18b]
mov edx, 0xc
call fcn.004076a4
cmp dword [ebp - 0x15c], 0x10000
jne 0x4685f8
lea eax, [ebp - 0x18b]
mov edx, 0x15
call fcn.004076a4
jmp 0x46861c
add ebx, dword [ebp - 0x160]
push 0x1c
lea eax, [ebp - 0x16c]
push eax
push ebx
mov eax, dword [ebp - 0x150]
push eax
mov eax, dword [0x47bde8]
mov eax, dword [eax]
call eax
test eax, eax
jne 0x4685ca
lea eax, [ebp - 0x18b]
mov edx, 0xa
call fcn.004076a4
sub ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], ebx
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x28]
ja 0x468680
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x34]
cmp eax, dword [ebp - 0x2c]
jne 0x468680
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18b]
mov edx, 0xa
call fcn.004076a4
lea eax, [ebp - 0x24]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x150]
push eax
mov eax, dword [0x47be28]
mov eax, dword [eax]
call eax
jmp 0x4686ee
lea eax, [ebp - 0x18b]
mov edx, 0x16
call fcn.004076a4
push 0x468838
call fcn.00406df4
mov ebx, eax
test ebx, ebx
je 0x4686ee
mov edx, 0x9d35f923
mov eax, ebx
call fcn.0041ccdc
mov esi, eax
mov dword [0x47d5d4], esi
test esi, esi
je 0x4686ee
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x150]
push eax
call dword [0x47d5d4]
test eax, eax
jne 0x4686ee
push pe_nt_image_headers32
push 0x3000
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [ebp - 0x150]
push eax
call fcn.00406ec4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jbe 0x4687f7
push 0x468844
call fcn.00406d1c
mov edx, 0x4f58972e
call fcn.0041ccdc
mov dword [0x47b8f4], eax
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x58]
add eax, 8
push eax
mov eax, dword [ebp - 0x150]
push eax
call dword [0x47b8f4]
lea eax, [ebp - 0x18b]
mov edx, 0x19
call fcn.004076a4
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x150]
push eax
call dword [0x47b8f4]
test eax, eax
jne 0x468773
push 0
mov eax, dword [ebp - 0x150]
push eax
call fcn.00406eb4
jmp 0x4687f7
mov dword [ebp - 0xfc], 0x10007
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x2c]
je 0x468792
mov edx, dword [ebp - 0x30]
mov edx, dword [edx + 0x28]
add edx, eax
mov dword [ebp - 0x4c], edx
jmp 0x4687a1
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x34]
mov edx, dword [ebp - 0x30]
add eax, dword [edx + 0x28]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x18b]
mov edx, 0x16
call fcn.004076a4
lea eax, [ebp - 0xfc]
push eax
mov eax, dword [ebp - 0x14c]
push eax
mov eax, dword [0x47ba98]
mov eax, dword [eax]
call eax
lea eax, [ebp - 0x18b]
mov edx, 0x1e
call fcn.004076a4
mov eax, dword [ebp - 0x14c]
push eax
call fcn.00406e54
xor edx, edx
cmp edx, 0xffffffff
jne 0x4687ee
cmp eax, 0xffffffff
je 0x4687f7
mov dword [ebp - 0xc], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x468810
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46882d
lea eax, [ebp - 4]
call fcn.00404730
ret