Function at 0x46add0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0
cmp dword [ebp + 0x1c], 0
je 0x46adfa
mov edx, dword [ebp + 0x1c]
mov dword [edx], 0
mov eax, dword [ebp + 0x20]
mov dword [eax], 0
cmp dword [ebp + 0xc], 0x2a
ja 0x46ae10
xor al, al
jmp 0x46b202
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x18], 0
jne 0x46ae26
xor al, al
jmp 0x46b202
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x1c], 0
je 0x46ae44
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x24]
mov eax, dword [ecx + 0x18]
cmp eax, dword [edx + 0x1c]
jbe 0x46ae44
xor al, al
jmp 0x46b202
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x1c], 0x10000
ja 0x46ae5c
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x18], 0x10000
jbe 0x46ae63
xor al, al
jmp 0x46b202
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov cx, word [eax + 4]
mov edx, dword [ebp - 0x24]
cmp ecx, dword [edx + 0x18]
jbe 0x46ae7b
xor al, al
jmp 0x46b202
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov cx, word [eax + 0x14]
mov edx, dword [ebp - 0x24]
cmp ecx, dword [edx + 0x18]
jbe 0x46ae93
xor al, al
jmp 0x46b202
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov cx, word [eax + 0x14]
add ecx, 6
cmp ecx, dword [ebp + 0xc]
ja 0x46aef6
mov edx, dword [ebp - 0x24]
xor eax, eax
mov ax, word [edx + 0x14]
mov ecx, dword [ebp + 8]
add ecx, eax
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
and eax, 0xf
test eax, eax
jne 0x46aecc
mov ecx, dword [ebp - 0x28]
cmp dword [ecx], 0x1000
jbe 0x46aed3
xor al, al
jmp 0x46b202
mov edx, dword [ebp - 0x24]
xor eax, eax
mov ax, word [edx + 0x14]
mov ecx, dword [ebp - 0x28]
xor edx, edx
mov dx, word [ecx + 4]
add eax, edx
mov ecx, dword [ebp - 0x24]
cmp eax, dword [ecx + 0x18]
jbe 0x46aef6
xor al, al
jmp 0x46b202
mov edx, dword [ebp - 0x24]
xor eax, eax
mov ax, word [edx + 0x14]
test eax, eax
je 0x46af27
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov dx, word [ecx + 6]
cmp edx, 2
jl 0x46af27
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov cx, word [eax + 4]
mov edx, dword [ebp - 0x24]
xor eax, eax
mov ax, word [edx + 0x14]
cmp ecx, eax
jl 0x46af2e
mov al, 1
jmp 0x46b202
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov dx, word [ecx + 0x12]
test edx, edx
jne 0x46af42
mov al, 1
jmp 0x46b202
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov cx, word [eax + 0x14]
add ecx, 0x10
cmp ecx, dword [ebp + 0xc]
jbe 0x46af5a
mov al, 1
jmp 0x46b202
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov cx, word [eax + 6]
sub ecx, 1
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x1c]
xor edx, edx
div ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
and eax, dword [ebp - 0xc]
test eax, eax
je 0x46af8d
mov al, 1
jmp 0x46b202
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov cx, word [eax + 0x14]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0x40
cmp edx, dword [ebp + 0xc]
ja 0x46b110
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov dx, word [ecx + 4]
test edx, edx
je 0x46afd5
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0
jne 0x46afda
jmp 0x46b110
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx], 0x80
ja 0x46afed
mov edx, dword [ebp - 0x2c]
cmp dword [edx], 0x20
jne 0x46aff2
jmp 0x46b110
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
and ecx, 0xf
test ecx, ecx
jne 0x46b009
mov edx, dword [ebp - 0x2c]
cmp dword [edx], 0x1000
jbe 0x46b00e
jmp 0x46b110
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0x30
jne 0x46b0e7
cmp dword [ebp + 0x1c], 0
je 0x46b0e7
mov ecx, dword [ebp + 0x1c]
cmp dword [ecx], 0
jne 0x46b0e5
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov al, byte [edx + 8]
test eax, eax
jne 0x46b0e5
mov ecx, dword [ebp - 0x2c]
add ecx, 0x10
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
xor eax, eax
mov ax, word [edx + 4]
mov ecx, dword [ebp - 4]
add ecx, eax
cmp ecx, dword [ebp + 0xc]
jae 0x46b086
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
cmp eax, dword [ebp + 0xc]
jae 0x46b086
mov ecx, dword [ebp - 0x34]
cmp dword [ecx], 0x44
jb 0x46b086
mov edx, dword [ebp - 0x34]
xor eax, eax
mov ax, word [edx + 4]
mov ecx, dword [ebp - 4]
add ecx, eax
mov edx, dword [ebp - 0x34]
add ecx, dword [edx]
cmp ecx, dword [ebp + 0xc]
jb 0x46b08b
jmp 0x46b110
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov cx, word [eax + 4]
mov edx, dword [ebp - 0x2c]
add edx, ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x38]
and ecx, 0x10000000
test ecx, ecx
je 0x46b0ae
jmp 0x46b110
mov edx, dword [ebp - 0x30]
xor eax, eax
mov al, byte [edx + 0x41]
cmp eax, 2
je 0x46b0e5
mov ecx, dword [ebp - 0x30]
xor edx, edx
mov dl, byte [ecx + 0x40]
cmp edx, 0x400
jle 0x46b0cd
jmp 0x46b110
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov cl, byte [eax + 0x40]
mov edx, dword [ebp + 0x20]
mov dword [edx], ecx
mov eax, dword [ebp - 0x30]
add eax, 0x42
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
jmp 0x46b0fa
mov edx, dword [ebp - 0x2c]
cmp dword [edx], 0x80
jne 0x46b0fa
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
jmp 0x46b110
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov dx, word [ecx + 4]
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 4], eax
jmp 0x46afa8
cmp dword [ebp + 0x1c], 0
je 0x46b13f
mov ecx, dword [ebp + 0x20]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
lea edx, [ecx + edx*2]
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
cmp edx, eax
jbe 0x46b13f
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], 0
mov edx, dword [ebp + 0x20]
mov dword [edx], 0
cmp dword [ebp - 0x18], 0
je 0x46b151
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov cl, byte [eax + 8]
test ecx, ecx
jne 0x46b158
mov al, 1
jmp 0x46b202
mov edx, dword [ebp - 0x18]
add edx, 0x10
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
add eax, 8
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x40]
mov ecx, dword [edx + 4]
cmp ecx, dword [eax + 4]
jg 0x46b190
jl 0x46b18c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x40]
mov ecx, dword [edx]
cmp ecx, dword [eax]
ja 0x46b190
mov al, 1
jmp 0x46b202
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x44]
mov edx, dword [eax]
or edx, dword [ecx + 4]
test edx, edx
jne 0x46b1ac
mov al, 1
jmp 0x46b202
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 8]
sub edx, dword [ecx]
mov eax, dword [eax + 0xc]
sbb eax, dword [ecx + 4]
add edx, 1
adc eax, 0
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ecx + 0x18]
push eax
call fcn.004aa4b0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x46b1f4
mov ecx, dword [ebp - 0x14]
and ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x46b1f8
mov al, 1
jmp 0x46b202
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x14]
mov dword [edx], eax
mov al, 1
mov esp, ebp
pop ebp
ret 0x1c