Function at 0x46b140
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
mov edx, dword [esp + 0x20]
push ebx
push ebp
push esi
mov eax, dword [edx + 0x34]
xor esi, esi
mov ebp, dword [edx + 0x38]
movzx ecx, byte [edx + 7]
add ecx, ebp
mov dword [esp + 0x14], ebp
mov ebx, dword [eax + 0x24]
movzx eax, byte [edx + 6]
add ebx, ebp
add eax, 8
mov dword [esp + 0x18], ebx
add eax, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x20], eax
xor edx, edx
mov eax, dword [esp + 0x34]
xor ecx, ecx
push edi
mov edi, dword [esp + 0x34]
add eax, edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], edx
cmp edi, eax
jge 0x46b546
mov ebp, dword [esp + 0x3c]
lea esp, [esp]
mov eax, dword [ebp + 8]
mov esi, dword [eax + edi*4]
cmp esi, dword [esp + 0x24]
jb 0x46b202
cmp esi, ebx
jae 0x46b202
mov eax, dword [ebp + 0xc]
movzx ebx, word [eax + edi*2]
lea ebp, [ebx + esi]
cmp ecx, ebp
je 0x46b1ee
test ecx, ecx
je 0x46b1d4
sub ecx, dword [esp + 0x18]
push edx
push ecx
push dword [esp + 0x38]
call fcn.004526e0
add esp, 0xc
mov edx, ebx
mov ecx, esi
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x20], edx
cmp ebp, ebx
jbe 0x46b1fa
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
add edx, ebx
mov ecx, esi
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x20], edx
inc dword [esp + 0x10]
mov ebp, dword [esp + 0x3c]
inc edi
cmp edi, dword [esp + 0x34]
jl 0x46b1a0
test ecx, ecx
je 0x46b542
mov ebp, dword [esp + 0x30]
sub ecx, dword [esp + 0x18]
movzx eax, dx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x34]
mov edi, dword [ebp + 0x38]
movzx ecx, cx
movzx esi, cx
mov ebx, dword [eax + 0x24]
mov dword [esp + 0x14], ecx
sub ebx, 4
test byte [eax + 0x16], 4
movzx ecx, dx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x34], 0
mov dword [esp + 0x24], esi
lea ebx, [ecx + esi]
mov dword [esp + 0x18], edi
je 0x46b262
push ecx
lea eax, [esi + edi]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov al, byte [ebp + 6]
mov byte [esp + 0x38], al
movzx eax, al
inc ax
movzx ebp, ax
mov esi, ebp
mov dl, byte [esi + edi + 1]
lea eax, [esi + edi]
test dl, dl
jne 0x46b291
cmp byte [eax], dl
jne 0x46b291
mov edi, dword [esp + 0x14]
xor edx, edx
mov ebp, dword [esp + 0x18]
jmp 0x46b492
movzx ecx, byte [eax]
mov edi, dword [esp + 0x14]
shl cx, 8
movzx eax, dl
or cx, ax
movzx edx, cx
test dx, dx
je 0x46b2e1
lea ebx, [ebx]
cmp dx, di
jae 0x46b2e1
movzx eax, bp
movzx esi, dx
add eax, 4
cmp esi, eax
jl 0x46b311
mov eax, dword [esp + 0x18]
movzx ebp, dx
movzx ecx, byte [esi + eax]
movzx eax, byte [esi + eax + 1]
shl cx, 8
or cx, ax
movzx edx, cx
test dx, dx
jne 0x46b2b0
movzx ecx, dx
cmp ecx, dword [esp + 0x28]
jbe 0x46b338
push 0x4df4a4
push 0xd85e
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.0043b3c0
mov esi, dword [esp + 0x20]
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push 0x4df4a4
push 0xd85b
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.0043b3c0
mov esi, dword [esp + 0x20]
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
test dx, dx
je 0x46b3d7
lea eax, [ebx + 3]
cmp eax, ecx
jb 0x46b3d7
mov al, dl
sub al, bl
mov byte [esp + 0x34], al
cmp ebx, ecx
jbe 0x46b37f
push 0x4df4a4
push 0xd869
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.0043b3c0
mov esi, dword [esp + 0x20]
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x18]
add edx, ecx
movzx ebx, byte [edx + 2]
movzx eax, byte [edx + 3]
shl ebx, 8
or ebx, eax
mov eax, dword [esp + 0x30]
add ebx, ecx
mov eax, dword [eax + 0x34]
cmp ebx, dword [eax + 0x24]
jbe 0x46b3bb
push 0xd86b
call fcn.0047e090
mov esi, dword [esp + 0x14]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
movzx ecx, byte [edx]
mov eax, ebx
sub eax, edi
shl cx, 8
movzx eax, ax
mov dword [esp + 0x1c], eax
movzx eax, byte [edx + 1]
or cx, ax
movzx edx, cx
movzx eax, byte [esp + 0x38]
mov dword [esp + 0x28], eax
inc eax
movzx esi, bp
cmp esi, eax
jle 0x46b451
mov eax, dword [esp + 0x18]
movzx ecx, byte [esi + eax + 2]
movzx eax, byte [esi + eax + 3]
shl ecx, 8
or ecx, eax
add ecx, esi
lea eax, [ecx + 3]
cmp eax, dword [esp + 0x24]
jl 0x46b451
cmp ecx, dword [esp + 0x24]
jle 0x46b433
push 0x4df4a4
push 0xd877
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.0043b3c0
mov esi, dword [esp + 0x20]
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x14]
sub al, cl
add byte [esp + 0x34], al
mov eax, ebx
sub eax, ebp
movzx eax, ax
mov dword [esp + 0x1c], eax
movzx eax, bp
mov dword [esp + 0x14], eax
mov edi, eax
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov ah, byte [esp + 0x34]
mov al, byte [ecx + ebp + 7]
cmp ah, al
jbe 0x46b48c
push 0x4df4a4
push 0xd87d
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.0043b3c0
mov esi, dword [esp + 0x20]
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
sub al, ah
mov byte [ecx + ebp + 7], al
movzx eax, byte [esp + 0x38]
mov dword [esp + 0x38], eax
movzx eax, di
mov edi, dword [esp + 0x38]
mov dword [esp + 0x34], eax
movzx ecx, byte [edi + ebp + 5]
movzx eax, byte [edi + ebp + 6]
shl ecx, 8
or ecx, eax
cmp dword [esp + 0x34], ecx
jne 0x46b505
lea eax, [edi + 1]
cmp esi, eax
je 0x46b4e9
push 0x4df4a4
push 0xd884
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.0043b3c0
mov esi, dword [esp + 0x20]
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, edx
mov byte [edi + ebp + 2], dl
shr eax, 8
mov byte [edi + ebp + 1], al
mov eax, ebx
shr eax, 8
mov byte [edi + ebp + 5], al
mov byte [edi + ebp + 6], bl
jmp 0x46b536
mov ecx, dword [esp + 0x14]
mov eax, ecx
mov ebx, dword [esp + 0x34]
shr eax, 8
mov byte [esi + ebp], al
mov eax, edx
mov byte [esi + ebp + 1], cl
shr eax, 8
mov byte [ebx + ebp], al
mov eax, dword [esp + 0x1c]
mov ecx, eax
shr ecx, 8
mov byte [ebx + ebp + 1], dl
mov byte [ebx + ebp + 2], cl
mov byte [ebx + ebp + 3], al
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
add word [eax + 0x10], cx
mov esi, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret