Function at 0x4c94a0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov ecx, dword [esp + 0x24]
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x2c]
lea edx, [ecx + ebp]
mov dword [esp + 0x10], edx
mov eax, dword [edi + 0x38]
movzx ebx, word [edi + 0x18]
mov dword [esp + 0x1c], eax
movzx eax, byte [edi + 9]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x40]
lea eax, [eax + ebp*2]
mov dword [esp + 0x2c], eax
movzx eax, byte [edi + 0xc]
add eax, ebx
add eax, dword [esp + 0x30]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x30], ecx
jge 0x4c9559
mov eax, ecx
mov ecx, dword [esp + 0x30]
push esi
sub eax, ecx
push eax
push ecx
push edi
call fcn.004ec210
mov edx, eax
add esp, 0x10
mov dword [esp + 0x18], edx
cmp edx, ebx
jle 0x4c9538
push 0x58e774
push 0x11f4d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b7220
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov ecx, dword [edi + 0x40]
lea eax, [ebx + ebx]
push eax
lea eax, [ecx + edx*2]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_memmove]
mov eax, dword [esp + 0x20]
add esp, 0xc
sub ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
cmp edx, eax
jge 0x4c956d
push esi
sub eax, edx
push eax
push edx
push edi
call fcn.004ec210
add esp, 0x10
sub ebx, eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add eax, edx
mov dword [esp + 0x24], eax
movzx ecx, byte [eax + 5]
movzx eax, byte [eax + 6]
shl ecx, 8
or ecx, eax
lea eax, [edx + 1]
dec ecx
and ecx, 0xffff
add eax, ecx
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x2c]
jb 0x4c972a
cmp eax, dword [edi + 0x3c]
ja 0x4c972a
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
cmp edx, eax
jge 0x4c9605
mov ebp, eax
mov eax, dword [esp + 0x38]
sub ebp, edx
cmp eax, ebp
jge 0x4c95c5
mov ebp, eax
mov esi, dword [edi + 0x40]
lea eax, [ebx + ebx]
push eax
push esi
lea eax, [esi + ebp*2]
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
push dword [esp + 0x48]
lea eax, [esp + 0x20]
push ebp
push dword [esp + 0x48]
push esi
push eax
push dword [esp + 0x4c]
push edi
call fcn.004ec660
add esp, 0x28
test eax, eax
jne 0x4c9726
mov edx, dword [esp + 0x34]
add ebx, ebp
mov ebp, dword [esp + 0x38]
xor ecx, ecx
mov dword [esp + 0x18], ecx
cmp byte [edi + 0xc], cl
jbe 0x4c96bf
lea eax, [edi + 0x1c]
mov dword [esp + 0x14], eax
jmp 0x4c9620
movzx esi, word [eax]
sub esi, edx
add esi, dword [esp + 0x30]
js 0x4c96a3
cmp esi, ebp
jge 0x4c96a3
mov eax, dword [edi + 0x40]
lea ecx, [eax + esi*2]
mov dword [esp + 0x20], ecx
cmp ebx, esi
jle 0x4c9656
mov eax, ebx
sub eax, esi
add eax, eax
push eax
push ecx
lea eax, [ecx + 2]
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
mov edx, dword [esp + 0x40]
add esp, 0xc
mov ecx, dword [esp + 0x3c]
add esi, edx
inc ebx
mov eax, dword [ecx + 0xc]
cmp word [eax + esi*2], 0
jne 0x4c9675
push esi
push ecx
call fcn.004c5cf0
mov ecx, dword [esp + 0x44]
add esp, 8
push ecx
push 1
push esi
push dword [esp + 0x2c]
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x40]
push edi
call fcn.004ec660
add esp, 0x1c
test eax, eax
jne 0x4c972a
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add eax, 2
inc ecx
mov dword [esp + 0x14], eax
movzx eax, byte [edi + 0xc]
cmp ecx, eax
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x14]
jl 0x4c9620
mov eax, dword [edi + 0x40]
push dword [esp + 0x3c]
lea ecx, [eax + ebx*2]
mov eax, ebp
sub eax, ebx
push eax
lea eax, [ebx + edx]
push eax
push ecx
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x40]
push edi
call fcn.004ec660
add esp, 0x1c
test eax, eax
jne 0x4c972a
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
mov word [edi + 0x18], ax
shr eax, 8
mov byte [edi + 0xc], 0
mov byte [edx + 3], al
mov al, byte [edi + 0x18]
mov byte [edx + 4], al
mov eax, ecx
pop edi
sub eax, ebx
sub cl, bl
pop esi
sar eax, 8
pop ebp
mov byte [edx + 5], al
xor eax, eax
mov byte [edx + 6], cl
pop ebx
add esp, 0x18
ret
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x3c]
push ebp
push esi
push ebx
call fcn.004f06f0
push edi
push ebp
push esi
push ebx
call fcn.004f2690
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret