Function at 0x46f910
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
lea eax, [ebp + ebp*2 + 1]
push 0x400
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
mov dword [ecx], 0x400
call fcn.0053e13b
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x2c]
push edx
mov ebx, eax
mov dword [esp + 0x30], edi
call fcn.0053e13b
mov esi, eax
add esp, 8
test esi, esi
je 0x46f999
push ebp
lea eax, [esp + 0x18]
push edi
push eax
push esi
mov dword [esp + 0x20], esi
call fcn.004e6060
add eax, 5
add esp, 0x10
cmp eax, 5
ja case.0x46f978.2
jmp dword [eax*4 + 0x46fc18]
mov ecx, dword [esp + 0x14]
lea eax, [ecx + ecx]
push eax
mov dword [esp + 0x18], eax
call fcn.0053e13b
mov esi, eax
add esp, 4
test esi, esi
jne 0x46f95c
mov edx, dword [esp + 0x10]
push edx
call fcn.0053d6fa
add esp, 4
jmp 0x46fbe0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], eax
mov ebp, eax
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x46fbc0
test ebx, ebx
je 0x46fbc0
cmp ebp, 0x18
jb 0x46fbc0
cmp byte [ecx], 0xff
jne 0x46fbc0
cmp byte [ecx + 1], 0xff
jne 0x46fbc0
cmp byte [ecx + 2], 0xff
jne 0x46fbc0
cmp byte [ecx + 3], 0xff
jne 0x46fbc0
lea edx, [ebp - 8]
mov eax, ebx
test edx, edx
mov esi, ecx
jb 0x46fbaa
mov cl, byte [esi]
cmp cl, 0xff
jne 0x46fae6
cmp byte [esi + 1], cl
jne 0x46fae6
cmp byte [esi + 2], cl
jne 0x46fae6
cmp byte [esi + 3], cl
jne 0x46fae6
xor ecx, ecx
xor edx, edx
mov cl, byte [esi + 7]
mov dl, byte [esi + 6]
mov edi, ecx
xor ecx, ecx
mov cl, byte [esi + 5]
add esi, 8
shl edi, 8
add edi, edx
xor edx, edx
mov dl, byte [esi - 4]
shl edi, 8
add edi, ecx
shl edi, 8
add edi, edx
mov edx, dword [esp + 0x28]
mov ecx, edi
sub ecx, edx
add ecx, esi
cmp ecx, ebp
ja 0x46fbe0
mov edx, dword [esp + 0x24]
mov ecx, dword [edx]
mov edx, edi
sub edx, ebx
add edx, eax
cmp edx, ecx
jbe 0x46faa8
sub eax, ebx
mov ebp, eax
lea eax, [ecx + edi + 0x400]
mov ecx, dword [esp + 0x24]
push eax
push ebx
mov dword [ecx], eax
call fcn.0053de0c
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x46fbe0
lea eax, [ebx + ebp]
mov ebp, dword [esp + 0x2c]
mov edx, edi
dec edi
test edx, edx
jbe 0x46fb93
inc edi
mov cl, byte [esi]
mov byte [eax], cl
inc eax
inc esi
dec edi
jne 0x46fab4
jmp 0x46fb93
push esi
call fcn.0053d6fa
add esp, 4
mov dword [esp + 0x10], 0
jmp case.0x46f978.2
push esi
call fcn.0053d6fa
add esp, 4
jmp 0x46fbd8
xor edx, edx
and ecx, 0xff
mov dl, byte [esi + 3]
add esi, 8
mov ebp, edx
xor edx, edx
mov dl, byte [esi - 6]
shl ebp, 8
add ebp, edx
xor edx, edx
mov dl, byte [esi - 7]
shl ebp, 8
add ebp, edx
xor edx, edx
shl ebp, 8
mov dl, byte [esi - 2]
add ebp, ecx
xor ecx, ecx
mov cl, byte [esi - 1]
mov edi, ecx
xor ecx, ecx
mov cl, byte [esi - 3]
shl edi, 8
add edi, edx
xor edx, edx
mov dl, byte [esi - 4]
shl edi, 8
add edi, ecx
lea ecx, [ebx + ebp]
shl edi, 8
add edi, edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x18], ecx
mov ecx, dword [edx]
mov edx, edi
sub edx, ebx
add edx, eax
cmp edx, ecx
jbe 0x46fb79
sub eax, ebx
mov dword [esp + 0x18], eax
lea eax, [ecx + edi + 0x400]
mov ecx, dword [esp + 0x24]
push eax
push ebx
mov dword [ecx], eax
call fcn.0053de0c
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x46fbe0
mov edx, dword [esp + 0x18]
add ebp, ebx
lea eax, [edx + ebx]
jmp 0x46fb7d
mov ebp, dword [esp + 0x18]
mov ecx, edi
dec edi
test ecx, ecx
jbe 0x46fb8f
inc edi
mov dl, byte [ebp]
mov byte [eax], dl
inc eax
inc ebp
dec edi
jne 0x46fb85
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, esi
sub edx, ecx
lea ecx, [ebp - 8]
cmp edx, ecx
jbe 0x46fa0c
mov ecx, dword [esp + 0x28]
sub esi, ecx
cmp esi, ebp
jne 0x46fbe0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, ebx
mov dword [ecx], ebx
mov dword [edx], eax
jmp 0x46fbfd
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46fbe0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov dword [ecx], eax
mov eax, dword [esp + 0x24]
mov dword [eax], edx
mov dword [esp + 0x10], 0
push ebx
call fcn.0053d6fa
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
add esp, 4
mov dword [ecx], 0
mov dword [edx], 0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x46fc12
push eax
call fcn.0053d6fa
add esp, 4
add esp, 0xc
ret 0x10