Function at 0x4de530
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x1c]
cmp byte [edi + 0xc], 0
jne 0x4de765
lea eax, [ebp + 2]
cmp eax, dword [edi + 0x14]
jg 0x4de765
push dword [edi + 0x48]
call fcn.00518760
add esp, 4
test eax, eax
jne 0x4de7a4
mov ebx, dword [edi + 0x38]
movzx esi, byte [edi + 9]
movzx ecx, word [edi + 0x18]
add esi, ebx
mov dword [esp + 0x1c], eax
movzx eax, word [edi + 0x12]
mov dword [esp + 0x14], ebx
movzx ebx, byte [esi + 5]
shl ebx, 8
lea ecx, [eax + ecx*2]
movzx eax, byte [esi + 6]
or ebx, eax
mov dword [esp + 0x10], ecx
cmp ecx, ebx
jbe 0x4de62a
test ebx, ebx
jne 0x4de5ff
mov eax, dword [edi + 0x34]
cmp dword [eax + 0x28], 0x10000
jne 0x4de5ff
mov ebx, 0x10000
cmp byte [esi + 2], 0
jne 0x4de5c2
cmp byte [esi + 1], 0
je 0x4de677
lea eax, [ecx + 2]
cmp eax, ebx
ja 0x4de677
lea eax, [esp + 0x1c]
push eax
push ebp
push edi
call fcn.004e8fe0
add esp, 0xc
test eax, eax
je 0x4de65d
mov ebx, eax
sub ebx, dword [esp + 0x14]
cmp ebx, dword [esp + 0x10]
jg 0x4de6c3
push 0x116b5
call fcn.005016c0
add esp, 4
jmp 0x4de667
push 0x6f10ac
push 0x116a1
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b1f90
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [edi + 0x34]
cmp ebx, dword [eax + 0x28]
jle 0x4de5b2
push 0x6f10ac
push 0x116a4
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b1f90
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4de673
xor ebx, ebx
test eax, eax
je 0x4de6c3
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x10]
lea eax, [ebp + 2]
add eax, ecx
cmp eax, ebx
jle 0x4de6b6
mov eax, dword [edi + 0x14]
mov ecx, 4
sub eax, ebp
add eax, 0xfffffffe
cmp eax, ecx
cmovg eax, ecx
push eax
push edi
call fcn.004d22e0
add esp, 8
test eax, eax
jne 0x4de7a4
movzx ecx, byte [esi + 5]
movzx eax, byte [esi + 6]
shl ecx, 8
or ecx, eax
dec ecx
movzx ebx, cx
inc ebx
sub ebx, ebp
mov eax, ebx
mov byte [esi + 6], bl
sar eax, 8
mov byte [esi + 5], al
lea eax, [ebp + 2]
movzx eax, ax
sub dword [edi + 0x14], eax
lea eax, [ebp - 4]
mov ebp, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x28]
add eax, 4
push eax
lea eax, [ebp + 4]
add eax, ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
bswap eax
mov dword [ebx + ebp], eax
mov eax, dword [edi + 0x40]
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 sub.VCRUNTIME140.dll_memmove
mov eax, ebx
mov byte [esi + 1], bl
sar eax, 8
add esp, 0x18
mov byte [esi], al
movzx eax, byte [edi + 9]
inc word [edi + 0x18]
add byte [eax + ebp + 4], 1
jne 0x4de731
movzx eax, byte [edi + 9]
inc byte [eax + ebp + 3]
mov eax, dword [edi + 0x34]
cmp byte [eax + 0x11], 0
je 0x4de7a2
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push dword [esp + 0x28]
push edi
push edi
call fcn.004ee530
mov eax, dword [esp + 0x2c]
add esp, 0x10
test eax, eax
je 0x4de7a2
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x4de77d
push ebp
push dword [esp + 0x28]
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x4de781
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
bswap eax
mov dword [esi], eax
mov al, byte [edi + 0xc]
movzx ecx, al
inc al
mov byte [edi + 0xc], al
mov ax, word [esp + 0x20]
mov dword [edi + ecx*4 + 0x24], esi
mov word [edi + ecx*2 + 0x1c], ax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret