Function at 0x631b60
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
mov ebx, edx
mov dword [esp + 0x14], edi
xor eax, eax
mov dword [esp + 0x18], eax
mov esi, dword [edi + 0xc]
mov dword [esp + 0x1c], esi
test ebx, ebx
je 0x631b96
mov eax, dword [ebx + 0x44]
inc word [eax + 0x16]
jmp 0x631be4
mov ecx, dword [edi]
mov esi, dword [ebp + 8]
mov edx, esi
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
mov ecx, dword [ecx + 0xa8]
push 0
call fcn.00629a40
mov ecx, dword [esp + 0x28]
add esp, 8
test ecx, ecx
je 0x631bde
mov ebx, dword [ecx + 4]
cmp esi, 1
mov eax, dword [ecx]
mov dword [ebx + 0x40], eax
setne al
dec al
mov dword [ebx + 0x44], ecx
and al, 0x64
mov dword [ebx + 0x3c], edi
mov dword [ebx + 0x48], esi
mov byte [ebx + 5], al
jmp 0x631be0
xor ebx, ebx
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x44]
call fcn.0062e680
mov edi, eax
test edi, edi
jne 0x631e99
mov esi, dword [esi + 0x40]
movzx edx, byte [esi + 0x24]
movzx eax, byte [esi + 0x25]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 0x26]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 0x27]
shl edx, 8
or edx, eax
lea ecx, [edx + 1]
mov eax, ecx
mov byte [esi + 0x27], cl
shr eax, 0x18
mov byte [esi + 0x24], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 0x25], al
mov eax, ecx
shr eax, 8
mov byte [esi + 0x26], al
test edx, edx
je 0x631ded
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
push edi
mov ecx, dword [ecx + 0x40]
movzx edx, byte [ecx + 0x20]
movzx eax, byte [ecx + 0x21]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0x22]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0x23]
mov ecx, dword [esi]
shl edx, 8
or edx, eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x20], edx
call fcn.0062df80
mov edi, eax
add esp, 8
test edi, edi
jne 0x631e99
mov eax, dword [esp + 0x20]
mov edi, dword [eax + 4]
mov ecx, dword [eax]
mov dword [esp + 0x10], edi
mov dword [edi + 0x44], eax
mov eax, dword [esp + 0x18]
cmp eax, 1
mov dword [edi + 0x48], eax
setne al
mov dword [edi + 0x40], ecx
dec al
mov dword [edi + 0x3c], esi
and al, 0x64
mov byte [edi + 5], al
movzx edx, byte [ecx + 4]
movzx eax, byte [ecx + 5]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 6]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 7]
movzx ecx, word [esi + 0x14]
shr ecx, 2
shl edx, 8
or edx, eax
mov dword [esp + 0x24], edx
lea eax, [ecx - 2]
cmp edx, eax
jbe 0x631ceb
mov edi, 0xb
jmp 0x631e99
lea eax, [ecx - 8]
cmp edx, eax
jae 0x631ded
mov ecx, dword [esp + 0x20]
call fcn.0062e680
mov edi, eax
test edi, edi
jne 0x631e99
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
inc edx
mov eax, edx
mov ecx, dword [edi + 0x40]
shr eax, 0x18
mov byte [ecx + 4], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 5], al
mov eax, edx
shr eax, 8
mov byte [ecx + 6], al
mov byte [ecx + 7], dl
mov eax, dword [edi + 0x40]
mov ecx, dword [esp + 0x24]
mov edx, dword [ebp + 8]
mov byte [eax + ecx*4 + 0xb], dl
lea ecx, [eax + ecx*4]
mov eax, edx
shr eax, 0x18
mov byte [ecx + 8], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 9], al
mov eax, edx
shr eax, 8
mov byte [ecx + 0xa], al
test ebx, ebx
je 0x631d79
mov edi, dword [ebx + 0x44]
movzx ecx, word [edi + 0x14]
test cl, 2
je 0x631d79
mov eax, dword [edi + 0x10]
cmp dword [eax + 0x5c], 0
jne 0x631d79
or ecx, 0x20
mov word [edi + 0x14], cx
mov ecx, dword [esi + 0x30]
xor edi, edi
test ecx, ecx
jne 0x631dcc
mov ecx, dword [esi]
lea edx, [esp + 0x24]
mov dword [esp + 0x24], 0x64
call fcn.0062ccc0
push 0x200
call fcn.00624a60
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x631de0
push 0x1fc
lea ecx, [eax + 4]
push edi
push ecx
call fcn.006783e0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov eax, dword [esp + 0x24]
mov edx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [esi + 0x30], ecx
cmp edx, dword [ecx]
ja 0x631e99
call fcn.00629710
mov edi, eax
jmp 0x631e99
mov dword [esi + 0x30], eax
mov edi, 7
jmp 0x631e99
test ebx, ebx
jne 0x631e3f
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x24]
mov esi, dword [ebp + 8]
mov edx, esi
push ebx
push eax
mov ecx, dword [ecx]
call fcn.0062df80
mov edi, eax
add esp, 8
test edi, edi
je 0x631e19
mov eax, dword [esp + 0x10]
jmp 0x631ec4
mov ecx, dword [esp + 0x24]
cmp esi, 1
mov ebx, dword [ecx + 4]
mov eax, dword [ecx]
mov dword [ebx + 0x40], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x3c], eax
setne al
dec al
mov dword [ebx + 0x44], ecx
and al, 0x64
mov dword [ebx + 0x48], esi
mov byte [ebx + 5], al
mov ecx, dword [ebx + 0x44]
call fcn.0062e680
mov edi, eax
test edi, edi
jne 0x631e99
mov ecx, dword [ebx + 0x40]
mov edx, dword [esp + 0x18]
mov eax, edx
shr eax, 0x18
mov byte [ecx], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 1], al
mov eax, edx
shr eax, 8
mov byte [ecx + 2], al
mov byte [ecx + 3], dl
mov eax, dword [ebx + 0x40]
mov edx, dword [ebp + 8]
mov dword [eax + 4], edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x40]
mov eax, edx
shr eax, 0x18
mov byte [ecx + 0x20], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 0x21], al
mov eax, edx
shr eax, 8
mov byte [ecx + 0x22], al
mov byte [ecx + 0x23], dl
mov eax, dword [esp + 0x10]
mov edx, eax
mov dword [esp + 0x24], edx
test ebx, ebx
je 0x631ec4
mov ecx, dword [ebx + 0x44]
mov byte [ebx], 0
test ecx, ecx
je 0x631ec4
mov esi, dword [ecx + 0x10]
call fcn.00629bb0
mov ecx, esi
call fcn.0062df20
mov eax, dword [esp + 0x24]
test eax, eax
je 0x631ede
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x631ede
mov esi, dword [ecx + 0x10]
call fcn.00629bb0
mov ecx, esi
call fcn.0062df20
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret