Function at 0x4774a0
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 0x477559
mov eax, ecx
mov ecx, dword [esp + 0x30]
push esi
sub eax, ecx
push eax
push ecx
push edi
call fcn.00496d70
mov edx, eax
add esp, 0x10
mov dword [esp + 0x18], edx
cmp edx, ebx
jle 0x477538
push 0x52b284
push 0x11809
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00466a50
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 0x47756d
push esi
sub eax, edx
push eax
push edx
push edi
call fcn.00496d70
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 0x47771d
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
cmp edx, eax
jge 0x477601
mov ecx, eax
sub ecx, edx
mov dword [esp + 0x14], ecx
cmp ebp, ecx
jge 0x4775c0
mov ecx, ebp
mov dword [esp + 0x14], ebp
mov esi, dword [edi + 0x40]
lea eax, [ebx + ebx]
push eax
push esi
lea eax, [esi + ecx*2]
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
push dword [esp + 0x48]
lea eax, [esp + 0x20]
push dword [esp + 0x24]
push dword [esp + 0x48]
push esi
push eax
push dword [esp + 0x4c]
push edi
call fcn.004971c0
add esp, 0x28
test eax, eax
jne 0x47771d
add ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
xor ecx, ecx
mov dword [esp + 0x18], ecx
cmp byte [edi + 0xc], cl
jbe 0x4776b6
lea eax, [edi + 0x1c]
mov dword [esp + 0x14], eax
movzx esi, word [eax]
sub esi, edx
add esi, dword [esp + 0x30]
js 0x47769a
cmp esi, ebp
jge 0x47769a
mov eax, dword [edi + 0x40]
lea ecx, [eax + esi*2]
mov dword [esp + 0x20], ecx
cmp ebx, esi
jle 0x47764d
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 0x47766c
push esi
push ecx
call fcn.00473ee0
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.004971c0
add esp, 0x1c
test eax, eax
jne 0x47771d
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 0x477617
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.004971c0
add esp, 0x1c
test eax, eax
jne 0x47771d
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 esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x3c]
push ebp
push esi
push ebx
call fcn.0049b010
push edi
push ebp
push esi
push ebx
call fcn.0049ce70
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret