Function at 0x4fc070
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 0x4fc129
mov eax, ecx
mov ecx, dword [esp + 0x30]
push esi
sub eax, ecx
push eax
push ecx
push edi
call fcn.0051ede0
mov edx, eax
add esp, 0x10
mov dword [esp + 0x18], edx
cmp edx, ebx
jle 0x4fc108
push 0x5cd89c
push 0x11f4d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004e9df0
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 0x4fc13d
push esi
sub eax, edx
push eax
push edx
push edi
call fcn.0051ede0
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 0x4fc2fa
cmp eax, dword [edi + 0x3c]
ja 0x4fc2fa
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
cmp edx, eax
jge 0x4fc1d5
mov ebp, eax
mov eax, dword [esp + 0x38]
sub ebp, edx
cmp eax, ebp
jge 0x4fc195
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.0051f230
add esp, 0x28
test eax, eax
jne 0x4fc2f6
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 0x4fc28f
lea eax, [edi + 0x1c]
mov dword [esp + 0x14], eax
jmp 0x4fc1f0
movzx esi, word [eax]
sub esi, edx
add esi, dword [esp + 0x30]
js 0x4fc273
cmp esi, ebp
jge 0x4fc273
mov eax, dword [edi + 0x40]
lea ecx, [eax + esi*2]
mov dword [esp + 0x20], ecx
cmp ebx, esi
jle 0x4fc226
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 0x4fc245
push esi
push ecx
call fcn.004f88c0
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.0051f230
add esp, 0x1c
test eax, eax
jne 0x4fc2fa
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 0x4fc1f0
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.0051f230
add esp, 0x1c
test eax, eax
jne 0x4fc2fa
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.005232c0
push edi
push ebp
push esi
push ebx
call fcn.00525260
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret