Function at 0x100467f0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x38]
push ebp
mov ebp, ecx
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x38]
mov eax, dword [ebp + 0x38]
mov dword [esp + 0x24], eax
movzx eax, byte [ebp + 9]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x40]
push edi
movzx edi, word [ebp + 0x18]
mov dword [esp + 0x34], ebp
lea eax, [eax + ecx*2]
add ecx, esi
mov dword [esp + 0x14], eax
movzx eax, byte [ebp + 0xc]
add eax, edi
mov dword [esp + 0x18], ecx
add eax, edx
mov dword [esp + 0x1c], eax
cmp edx, esi
jge 0x100468a5
mov eax, esi
mov ecx, ebp
sub eax, edx
push ebx
push eax
call fcn.10046660
mov edx, eax
add esp, 8
mov dword [esp + 0x24], edx
cmp edx, edi
jle 0x10046885
push 0x10166fc4
push 0x12ecb
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100296a0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov ecx, dword [ebp + 0x40]
lea eax, [edi + edi]
push eax
lea eax, [ecx + edx*2]
push eax
push ecx
call fcn.10139d00
mov eax, dword [esp + 0x28]
add esp, 0xc
sub edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jge 0x100468bb
sub eax, ecx
mov edx, ecx
push ebx
push eax
mov ecx, ebp
call fcn.10046660
add esp, 8
sub edi, eax
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x28]
mov dword [esp + 0x30], eax
movzx ecx, byte [eax + 5]
movzx eax, byte [eax + 6]
shl ecx, 8
or eax, ecx
add eax, dword [esp + 0x28]
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x14]
jb 0x10046a65
cmp eax, dword [ebp + 0x3c]
ja 0x10046a65
mov eax, dword [esp + 0x20]
mov edx, esi
cmp edx, eax
jge 0x1004694b
mov esi, dword [ebp + 0x40]
mov ecx, eax
sub ecx, edx
lea eax, [edi + edi]
cmp dword [esp + 0x40], ecx
push eax
cmovl ecx, dword [esp + 0x44]
push esi
mov dword [esp + 0x24], ecx
lea eax, [esi + ecx*2]
push eax
call fcn.10139d00
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x24]
add esp, 0xc
mov ecx, ebp
push ebx
push dword [esp + 0x20]
push dword [esp + 0x44]
push esi
push eax
call fcn.10046510
add esp, 0x14
test eax, eax
jne 0x10046a61
add edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
xor ecx, ecx
mov dword [esp + 0x24], ecx
cmp byte [ebp + 0xc], cl
jbe 0x100469f9
lea eax, [ebp + 0x1c]
mov dword [esp + 0x1c], eax
movzx esi, word [eax]
sub esi, edx
add esi, dword [esp + 0x20]
js 0x100469dd
cmp esi, dword [esp + 0x40]
jge 0x100469dd
mov eax, dword [ebp + 0x40]
lea ecx, [eax + esi*2]
mov dword [esp + 0x2c], ecx
cmp edi, esi
jle 0x10046998
mov eax, edi
sub eax, esi
add eax, eax
push eax
push ecx
lea eax, [ecx + 2]
push eax
call fcn.10139d00
mov edx, dword [esp + 0x48]
add esp, 0xc
mov eax, dword [ebx + 0xc]
add esi, edx
inc edi
cmp word [eax + esi*2], 0
jne 0x100469ae
mov edx, esi
mov ecx, ebx
call fcn.10046300
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push ebx
push 1
push esi
push dword [esp + 0x38]
mov ecx, ebp
push eax
call fcn.10046510
add esp, 0x14
test eax, eax
jne 0x10046a61
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
add eax, 2
inc ecx
mov dword [esp + 0x1c], eax
movzx eax, byte [ebp + 0xc]
cmp ecx, eax
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x1c]
jl 0x10046961
mov eax, dword [ebp + 0x40]
mov esi, dword [esp + 0x40]
push ebx
lea ecx, [eax + edi*2]
mov eax, esi
sub eax, edi
push eax
lea eax, [edi + edx]
mov edx, dword [esp + 0x1c]
push eax
push ecx
lea eax, [esp + 0x28]
mov ecx, ebp
push eax
call fcn.10046510
add esp, 0x14
test eax, eax
jne 0x10046a61
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
movzx eax, si
mov word [ebp + 0x18], ax
shr eax, 8
mov byte [ebp + 0xc], 0
mov byte [edx + 3], al
mov al, byte [ebp + 0x18]
mov byte [edx + 4], al
mov eax, ecx
sub eax, ebx
sub cl, bl
sar eax, 8
mov byte [edx + 5], al
xor eax, eax
mov byte [edx + 6], cl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
cmp eax, 1
jge 0x10046a99
push 0x10166fc4
push 0x12f15
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100296a0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov ecx, dword [ebx + 4]
mov edi, eax
mov eax, dword [ebx + 0xc]
lea ebx, [esi*4]
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x30], ecx
lea esi, [eax + esi*2]
cmp word [esi], 0
jne 0x10046acf
mov eax, dword [ebp + 8]
push dword [eax + ebx]
mov eax, dword [ecx + 0x4c]
push ecx
call eax
mov ecx, dword [esp + 0x38]
add esp, 8
mov word [esi], ax
dec edi
add ebx, 4
add esi, 2
test edi, edi
jg 0x10046ab3
mov ebp, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
push ebp
push dword [esp + 0x44]
call fcn.10046330
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret