Function at 0x457fc0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [esp + 0x1c], edx
cmp byte [edi + 0xc], 0
jne 0x458252
lea eax, [esi + 2]
cmp eax, dword [edi + 0x14]
jg 0x458252
mov edx, dword [edi + 0x48]
test byte [edx + 0x1c], 4
mov ebx, dword [edx + 0x14]
je 0x45800e
mov eax, dword [ebx + 0x1c]
cmp eax, dword [edx + 0x18]
jb 0x45800e
cmp dword [ebx + 0x68], 0
je 0x458043
mov ecx, edx
call fcn.0044af80
jmp 0x458031
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
jne 0x458037
mov eax, dword [ebx + 0x9c]
mov ecx, edx
cmp eax, dword [ebx + 0xa8]
jbe 0x45802c
call fcn.0044cab0
jmp 0x458031
call fcn.0044ca30
mov ecx, eax
test ecx, ecx
je 0x458043
mov eax, dword [ebp + 0x18]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [edi + 0x38]
movzx edx, byte [edi + 9]
movzx eax, word [edi + 0x18]
add edx, ebx
movzx ecx, word [edi + 0x12]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], 0
movzx ebx, byte [edx + 5]
lea ecx, [ecx + eax*2]
shl ebx, 8
movzx eax, byte [edx + 6]
or ebx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
cmp ecx, ebx
jbe 0x458095
test ebx, ebx
jne 0x45810a
mov eax, dword [edi + 0x34]
cmp dword [eax + 0x28], 0x10000
jne 0x45810a
mov ebx, 0x10000
cmp byte [edx + 2], 0
jne 0x4580a5
cmp byte [edx + 1], 0
je 0x458149
lea eax, [ecx + 2]
cmp eax, ebx
ja 0x458149
lea eax, [esp + 0x10]
mov edx, esi
push eax
mov ecx, edi
call fcn.00451dd0
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x458139
mov edx, dword [esp + 0xc]
sub ecx, edx
mov dword [esp + 0x18], ecx
cmp ecx, dword [esp + 0x14]
jg 0x4581a8
push 0x5cacbc
push 0x11103
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043e300
mov ecx, dword [ebp + 0x18]
mov eax, 0xb
add esp, 0x14
mov dword [ecx], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5cacbc
push 0x110f1
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043e300
mov ecx, dword [ebp + 0x18]
mov eax, 0xb
add esp, 0x14
mov dword [ecx], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x45816f
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea eax, [esi + 2]
add eax, ecx
cmp eax, ebx
jle 0x458191
mov edx, dword [edi + 0x14]
mov eax, 4
sub edx, esi
mov ecx, edi
add edx, 0xfffffffe
cmp edx, eax
cmovg edx, eax
call fcn.004519a0
test eax, eax
je 0x45817b
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x18]
movzx ecx, byte [edx + 5]
movzx eax, byte [edx + 6]
shl ecx, 8
or ecx, eax
dec ecx
movzx ebx, cx
inc ebx
sub ebx, esi
mov eax, ebx
mov byte [edx + 6], bl
sar eax, 8
mov ecx, ebx
mov byte [edx + 5], al
mov edx, dword [esp + 0xc]
mov dword [esp + 0x18], ecx
mov ebx, dword [ebp + 8]
lea eax, [esi + 2]
movzx eax, ax
add ecx, edx
sub dword [edi + 0x14], eax
cmp dword [ebp + 0x14], 0
mov dword [esp + 0x14], ecx
je 0x4581de
lea eax, [esi - 4]
push eax
lea eax, [ebx + 4]
push eax
lea eax, [ecx + 4]
push eax
call fcn.00570750
mov ecx, dword [esp + 0x20]
mov eax, dword [ebp + 0x14]
bswap eax
mov dword [ecx], eax
jmp 0x4581e6
push esi
push ebx
push ecx
call fcn.00570750
mov eax, dword [edi + 0x40]
add esp, 0xc
mov ecx, dword [esp + 0x1c]
lea esi, [eax + ecx*2]
movzx eax, word [edi + 0x18]
sub eax, ecx
add eax, eax
push eax
lea eax, [esi + 2]
push esi
push eax
call fcn.00570750
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov eax, ecx
mov byte [esi + 1], cl
mov ecx, dword [esp + 0xc]
sar eax, 8
mov byte [esi], al
movzx eax, byte [edi + 9]
inc word [edi + 0x18]
add byte [eax + ecx + 4], 1
jne 0x458232
movzx eax, byte [edi + 9]
inc byte [eax + ecx + 3]
mov eax, dword [edi + 0x34]
cmp byte [eax + 0x11], 0
je 0x45828e
push dword [ebp + 0x18]
mov edx, edi
mov ecx, edi
push ebx
call fcn.00451910
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x45826c
push esi
push dword [ebp + 8]
push ebx
call fcn.00570750
mov edx, dword [esp + 0x28]
add esp, 0xc
jmp 0x45826f
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x45827a
bswap eax
mov dword [ebx], eax
mov al, byte [edi + 0xc]
movzx ecx, al
inc al
mov byte [edi + 0xc], al
mov dword [edi + ecx*4 + 0x24], ebx
mov word [edi + ecx*2 + 0x1c], dx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret