Function at 0x46f9f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1f0]
mov edx, dword [eax]
lea ebx, [ebx + ebx*4]
shl ebx, 4
cmp dword [ebp + 0x10], 0
push edi
mov edi, dword [esi + 0x28]
mov eax, dword [ebx + edi + 0x38]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + edi + 0x1c]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], eax
je 0x46fa46
cmp dword [ebp + 0x14], 0
je 0x46fa51
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x14], 0
je 0x46fa51
cmp dword [edi], 1
jg 0x46fa3d
cmp dword [eax + 0x44], 0
mov ecx, dword [eax + 0x28]
je 0x46fa60
cmp dword [esi + 0x44], 0
jne 0x46fa3d
cmp dword [eax + 0x48], 0
jne 0x46fa3d
movzx edx, word [esi + 6]
test edx, 0x1000
je 0x46fa78
cmp dword [eax + 0x44], 0
jne 0x46fa3d
cmp dword [ecx], 0
je 0x46fa3d
movzx ecx, word [eax + 6]
test cl, 1
jne 0x46fa3d
cmp dword [eax + 0x44], 0
je 0x46fa97
cmp dword [edi], 1
jg 0x46fa3d
cmp dword [ebp + 0x10], 0
jne 0x46fa3d
movzx ecx, word [esi + 6]
mov edx, ecx
and edx, 1
mov dword [esp + 0x30], edx
je 0x46faac
cmp dword [ebp + 0x14], 0
jne 0x46fa3d
cmp dword [esi + 0x38], 0
je 0x46fab8
cmp dword [eax + 0x38], 0
jne 0x46fa3d
cmp dword [ebp + 0x10], 0
je 0x46fac8
cmp dword [eax + 0x38], 0
jne 0x46fa3d
mov edx, dword [eax + 0x44]
test edx, edx
je 0x46fae9
cmp dword [esi + 0x2c], 0
jne 0x46fa3d
test edx, edx
je 0x46fae9
cmp word [esp + 0x30], 0
jne 0x46fa3d
movzx edx, word [eax + 6]
test edx, 0x800
jne 0x46fa3d
test ecx, 0x800
je 0x46fb0b
cmp dword [eax + 0x3c], 0
jne 0x46fa3d
test byte [ebx + edi + 0x2c], 0x20
lea ecx, [ebx + edi + 0x2c]
mov dword [esp + 0x38], ecx
jne 0x46fa3d
cmp dword [eax + 0x3c], 0
je 0x46fbb6
cmp dword [eax + 0x38], 0
jne 0x46fa3d
cmp dword [ebp + 0x10], 0
jne 0x46fa3d
cmp word [esp + 0x30], 0
jne 0x46fa3d
cmp dword [edi], 1
jne 0x46fa3d
test byte [eax + 6], 5
jne 0x46fa3d
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x46fb6c
cmp byte [eax + 4], 0x74
jne 0x46fa3d
mov edx, dword [eax + 0x28]
cmp dword [edx], 1
jl 0x46fa3d
mov edx, dword [esp + 0x18]
mov edx, dword [edx]
mov eax, dword [eax]
mov edx, dword [edx]
cmp edx, dword [eax]
jne 0x46fa3d
mov eax, ecx
test eax, eax
jne 0x46fb51
mov eax, dword [esi + 0x38]
test eax, eax
je 0x46fbb6
cmp dword [eax], ecx
jle 0x46fbb6
mov eax, dword [eax + 8]
add eax, 0x14
cmp word [eax], 0
je 0x46fa3d
mov edx, dword [esi + 0x38]
inc ecx
add eax, 0x18
cmp ecx, dword [edx]
jl 0x46fba1
mov ecx, dword [ebx + edi + 0x10]
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push 0x15
mov dword [eax + 0x1f0], ecx
call fcn.00491a70
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x1f0], edx
mov eax, dword [ecx + 0x3c]
add esp, 0x10
mov dword [esp + 0x18], eax
test eax, eax
je 0x46fc86
mov eax, dword [esi + 0x48]
mov edx, dword [esi + 0x44]
mov ecx, dword [esi + 0x3c]
mov ebx, dword [esi + 0x38]
mov dword [esp + 0x34], eax
xor eax, eax
push eax
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x18]
push esi
push edx
mov dword [esp + 0x3c], ecx
mov dword [esi + 0x38], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
call fcn.00474990
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x34]
add esp, 0xc
mov dword [esi + 0x48], ecx
mov dword [esi + 0x44], edx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x28], edi
mov byte [esi + 4], 0x74
test eax, eax
jne 0x46fc4d
mov eax, dword [esp + 0x30]
jmp 0x46fc5e
mov ecx, dword [esp + 0x30]
mov dword [eax + 0x3c], ecx
test ecx, ecx
je 0x46fc5b
mov dword [ecx + 0x40], eax
mov dword [eax + 0x40], esi
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x3c], eax
cmp byte [ecx + 0x40], 0
jne 0x46ffd0
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x3c]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x46fbf3
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx + edi + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], eax
mov eax, dword [ebx + edi + 0xc]
call fcn.0044f250
mov eax, dword [ebx + edi + 0x10]
mov ecx, dword [esp + 0x14]
call fcn.0044f250
mov eax, dword [ebx + edi + 0x14]
mov ecx, dword [esp + 0x14]
call fcn.0044f250
mov eax, dword [ebx + edi + 0x18]
xor ecx, ecx
mov dword [ebx + edi + 0xc], ecx
mov dword [ebx + edi + 0x10], ecx
mov dword [ebx + edi + 0x14], ecx
mov dword [ebx + edi + 0x1c], ecx
lea edi, [ebx + edi + 0x18]
cmp eax, ecx
je 0x46fd17
movzx ecx, word [eax + 0x28]
cmp ecx, 1
jne 0x46fd0c
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x19c]
test ecx, ecx
jne 0x46fcef
mov ecx, edx
mov edx, dword [ecx + 0x210]
mov dword [eax + 0x48], edx
mov ebx, esi
mov dword [ecx + 0x210], eax
mov dword [edi], 0
mov dword [esp + 0x30], ebx
jmp 0x46fd24
dec ecx
mov word [eax + 0x28], cx
mov dword [edi], 0
mov ebx, esi
mov dword [esp + 0x30], ebx
jmp 0x46fd24
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x28]
mov esi, dword [eax]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x28]
mov byte [esp + 0x13], 0
mov dword [esp + 0x24], eax
test eax, eax
je 0x46fd51
mov ecx, dword [esp + 0x38]
mov dl, byte [ecx]
mov byte [esp + 0x13], dl
jmp 0x46fd70
push 0
xor ecx, ecx
xor eax, eax
mov edx, edi
call fcn.0044cb60
add esp, 4
mov dword [ebx + 0x28], eax
mov dword [esp + 0x24], eax
test eax, eax
je 0x46ffc3
cmp esi, 1
jle 0x46fd98
mov ecx, dword [ebp + 0xc]
inc ecx
push ecx
lea edx, [esi - 1]
push edx
push edi
call fcn.0044ca60
add esp, 0xc
mov dword [ebx + 0x28], eax
cmp byte [edi + 0x40], 0
mov dword [esp + 0x24], eax
jne 0x46ffc3
test esi, esi
jle 0x46fe00
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
add eax, 8
mov dword [esp + 0x28], eax
lea eax, [ecx + edx + 8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], esi
jmp 0x46fdc0
mov ecx, dword [esp + 0x20]
mov edi, dword [ecx + 0x38]
mov esi, dword [esp + 0x14]
call fcn.0044c930
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov esi, eax
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
mov esi, 0x50
push esi
push 0
push eax
call fcn.004fbb00
add dword [esp + 0x2c], esi
add dword [esp + 0x34], esi
add esp, 0xc
dec dword [esp + 0x34]
jne 0x46fdc0
mov eax, dword [esp + 0x24]
mov cl, byte [esp + 0x13]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov byte [edx + eax + 0x2c], cl
mov ecx, dword [ebx]
xor eax, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], eax
cmp dword [ecx], eax
jle 0x46fe7f
mov dword [esp + 0x24], eax
lea esp, [esp]
mov edx, dword [ecx + 8]
mov eax, dword [esp + 0x24]
cmp dword [eax + edx + 4], 0
jne 0x46fe6d
mov ebx, dword [eax + edx + 8]
push esi
call fcn.0044f580
add esp, 4
mov esi, eax
call fcn.0044f800
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 8]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x18]
mov dword [edx + eax + 4], esi
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
add dword [esp + 0x24], 0x18
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [ecx]
jl 0x46fe30
mov ecx, dword [edi]
mov edx, dword [esp + 0x1c]
mov eax, dword [ebx]
push ecx
push edx
push eax
push esi
call fcn.0046f760
add esp, 0x10
cmp dword [ebp + 0x10], 0
je 0x46fec3
mov ecx, dword [edi]
mov edx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x30]
push ecx
push edx
push eax
push esi
call fcn.0046f760
mov ecx, dword [edi]
mov edx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x34]
push ecx
push edx
push eax
push esi
call fcn.0046f650
add esp, 0x20
mov dword [ebx + 0x34], eax
mov eax, dword [edi + 0x38]
test eax, eax
je 0x46fed6
mov dword [ebx + 0x38], eax
mov dword [edi + 0x38], 0
jmp 0x46feef
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x46feef
mov ecx, dword [edi]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push eax
push esi
call fcn.0046f760
add esp, 0x10
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x46ff0a
push 0
push 0
push eax
push esi
call fcn.00474120
add esp, 0x10
mov dword [esp + 0x28], eax
jmp 0x46ff12
mov dword [esp + 0x28], 0
cmp dword [ebp + 0x14], 0
mov eax, dword [ebx + 0x2c]
je 0x46ff6b
mov ecx, dword [esp + 0x28]
mov dword [ebx + 0x34], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x2c], ecx
mov edx, dword [edi]
mov ecx, dword [ebx + 0x34]
push edx
push eax
push ecx
push esi
call fcn.0046f650
push 0
mov dword [ebx + 0x34], eax
mov eax, dword [edi + 0x34]
push 0
push eax
push esi
call fcn.00474120
mov edx, dword [ebx + 0x34]
push eax
push edx
mov eax, esi
call fcn.00473c60
mov dword [ebx + 0x34], eax
mov eax, dword [edi + 0x30]
push 0
push eax
push esi
call fcn.00474490
add esp, 0x34
mov dword [ebx + 0x30], eax
jmp 0x46ff90
mov ecx, dword [edi]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push eax
push esi
call fcn.0046f650
mov ecx, dword [esp + 0x38]
push ecx
mov dword [ebx + 0x2c], eax
push eax
mov eax, esi
call fcn.00473c60
add esp, 0x18
mov dword [ebx + 0x2c], eax
mov dx, word [edi + 6]
and dx, 1
or word [ebx + 6], dx
mov eax, dword [edi + 0x44]
test eax, eax
je 0x46ffad
mov dword [ebx + 0x44], eax
mov dword [edi + 0x44], 0
mov ebx, dword [ebx + 0x3c]
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x18], eax
test ebx, ebx
jne 0x46fd20
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x14]
call fcn.00469af0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret