Function at 0x46cda0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 0xa
call fcn.004c7e90
add esp, 4
mov ebx, eax
mov ecx, ebp
mov dword [esp + 0x10], ebx
push 0
push 9
push ebx
call fcn.0045a740
test eax, eax
jne 0x46cddc
push ebx
call fcn.004c7e56
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [ebp + 0x4ba4]
test eax, eax
je 0x46cf0c
mov eax, dword [ebp + 0x4ba0]
test eax, eax
je 0x46cf0c
mov edi, dword [ebp + 0x324]
mov eax, dword [ebp + 0x4890]
mov dword [esp + 0x14], edi
cmp eax, dword [edi + 0x14]
jge 0x46cf0c
test eax, eax
jl 0x46cf0c
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x46cf0c
mov al, byte [eax]
shr eax, 2
and eax, 7
cmp eax, 1
jg 0x46ce97
mov edx, dword [ebp + 0x4bbc]
mov eax, dword [ebp + 0x4bbc]
mov ecx, dword [ebp + 0x4bb4]
add eax, ecx
mov ecx, dword [ebp + 0x10]
cmp ecx, eax
jge 0x46ce51
mov eax, ecx
cmp edx, eax
jge 0x46cf0c
mov eax, dword [ebp + 0x4bb8]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x4bb0]
sub ecx, eax
cmp esi, ecx
jge 0x46ce70
mov ecx, esi
mov esi, dword [ebp + 0x4ba0]
mov edi, dword [ebp + 0x4ba4]
mov esi, dword [esi + edx*4]
mov edi, dword [edi + edx*4]
add esi, eax
add edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc edx
rep movsb byte es:[edi], byte [esi]
jmp 0x46ce3a
cmp eax, 2
jne 0x46cf0c
mov esi, dword [ebp + 0x4bbc]
mov ecx, dword [ebp + 0x4bbc]
mov edx, dword [ebp + 0x4bb4]
lea eax, [ecx + edx]
mov ecx, dword [ebp + 0x10]
cmp ecx, eax
jge 0x46ceba
mov eax, ecx
cmp esi, eax
jge 0x46cf0c
mov edx, dword [ebp + 0x4bb8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x4bb0]
sub eax, edx
cmp ecx, eax
jge 0x46ced5
mov eax, ecx
mov ecx, eax
xor eax, eax
mov al, byte [edi + 9]
mov edi, dword [ebp + 0x4ba4]
mov bl, al
mov edi, dword [edi + esi*4]
mov bh, bl
mov eax, ebx
add edi, edx
mov edx, ecx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x10]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
inc esi
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x14]
jmp 0x46cea2
mov al, byte [ebx + 8]
mov edx, dword [ebp + 0xc]
and eax, 0x40
mov edi, edx
mov dword [ebp + 0x4880], eax
xor eax, eax
mov ax, word [ebx]
cmp edx, eax
jl 0x46cf28
mov edi, eax
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov dword [ebp + 0x4bb8], edi
mov ax, word [ebx + 2]
cmp ecx, eax
mov esi, ecx
jl 0x46cf3f
mov esi, eax
xor eax, eax
mov dword [ebp + 0x4bbc], esi
mov ax, word [ebx + 4]
sub edx, edi
cmp edx, eax
jge 0x46cf53
mov eax, edx
mov dword [ebp + 0x4bb0], eax
xor eax, eax
mov ax, word [ebx + 6]
sub ecx, esi
cmp ecx, eax
jge 0x46cf67
mov eax, ecx
mov ecx, dword [ebp + 0x320]
mov dword [ebp + 0x4bb4], eax
mov eax, dword [ebp + 0x4890]
inc ecx
mov dword [ebp + 0x320], ecx
inc eax
mov ecx, 3
mov edi, 0x4f165c
lea esi, [ebp + 0x486f]
xor edx, edx
mov dword [ebp + 0x4890], eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x46cfe0
xor ecx, ecx
cmp eax, ecx
jne 0x46cfe0
xor eax, eax
mov ax, word [ebx + 4]
mov dword [ebp + 0xc], eax
mov dx, word [ebx + 6]
xor eax, eax
mov dword [ebp + 0x10], edx
mov ax, word [ebx + 4]
xor edx, edx
mov dword [ebp + 0x4bb0], eax
mov dx, word [ebx + 6]
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x4bb4], edx
mov dword [ebp + 0x4bb8], ecx
mov dword [ebp + 0x4bbc], ecx
mov dword [ebp + 0x374], eax
mov eax, dword [ebp + 0x4878]
mov ebx, dword [ebp + 0x324]
test eax, eax
je 0x46d09c
push 6
call fcn.004c7e90
add esp, 4
test eax, eax
je 0x46d01c
lea ecx, [ebp + 0x4872]
mov edx, eax
mov dword [esp + 0x14], eax
mov esi, dword [ecx]
mov dword [edx], esi
mov cx, word [ecx + 4]
mov word [edx + 4], cx
jmp 0x46d024
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46d09c
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
lea edx, [eax + 1]
cmp ecx, edx
jne 0x46d088
add eax, dword [ebx + 0x20]
lea eax, [eax*4 + 4]
push eax
call fcn.004c7e90
mov ecx, dword [ebx + 0x18]
mov esi, dword [ebx + 0x10]
mov edi, eax
mov dword [esp + 0x1c], eax
lea ecx, [ecx*4 + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x10]
push eax
call fcn.004c7e56
mov edx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
mov ecx, dword [esp + 0x20]
add esp, 8
add eax, edx
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
mov edx, dword [esp + 0x14]
mov dword [ecx + eax*4], edx
mov eax, dword [ebx + 0x14]
inc eax
mov dword [ebx + 0x14], eax
mov esi, dword [esp + 0x10]
mov cl, byte [esi + 8]
test cl, 0x80
je 0x46d0ef
and ecx, 7
mov eax, 2
shl eax, cl
push 0
mov dx, ax
mov dword [ebp + 0x1c], eax
mov cl, byte [esi + 8]
imul dx, dx, 3
and ecx, 7
and edx, 0xffff
inc ecx
lea eax, [ebp + 0x20]
mov dword [ebp + 0x14], ecx
push edx
push eax
mov ecx, ebp
call fcn.0045a740
test eax, eax
jne 0x46d129
push 7
mov ecx, ebp
call fcn.00459ab0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov cl, byte [ebx + 8]
mov edx, 2
and ecx, 7
lea esi, [ebp + 0x48a0]
shl edx, cl
lea edi, [ebp + 0x20]
mov dword [ebp + 0x1c], edx
mov al, byte [ebx + 8]
and eax, 7
inc eax
mov dword [ebp + 0x14], eax
mov eax, edx
lea ecx, [eax + eax*2]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
test esi, esi
je 0x46d197
mov eax, dword [ebx + 0x34]
mov edx, dword [ebx + 0x30]
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x46d187
add eax, dword [ebx + 0x3c]
lea edx, [eax*4 + 4]
push edx
call fcn.004c7e90
mov ebp, eax
mov eax, dword [ebx + 0x34]
mov esi, dword [ebx + 0x2c]
mov edi, ebp
lea ecx, [eax*4 + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x2c]
push eax
call fcn.004c7e56
mov ecx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x34]
mov esi, dword [esp + 0x18]
add esp, 8
add eax, ecx
mov dword [ebx + 0x2c], ebp
mov dword [ebx + 0x34], eax
mov edx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x2c]
mov dword [eax + edx*4], esi
mov eax, dword [ebx + 0x30]
inc eax
mov dword [ebx + 0x30], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret