Function at 0x45c720
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 0x45c7d9
mov eax, ecx
mov ecx, dword [esp + 0x30]
push esi
sub eax, ecx
push eax
push ecx
push edi
call fcn.0047ba30
mov edx, eax
add esp, 0x10
mov dword [esp + 0x18], edx
cmp edx, ebx
jle 0x45c7b8
push 0x4f48b4
push 0x11674
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0044c270
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 0x45c7ed
push esi
sub eax, edx
push eax
push edx
push edi
call fcn.0047ba30
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 0x45c99d
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
cmp edx, eax
jge 0x45c881
mov ecx, eax
sub ecx, edx
mov dword [esp + 0x14], ecx
cmp ebp, ecx
jge 0x45c840
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.0047be80
add esp, 0x28
test eax, eax
jne 0x45c99d
add ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
xor ecx, ecx
mov dword [esp + 0x18], ecx
cmp byte [edi + 0xc], cl
jbe 0x45c936
lea eax, [edi + 0x1c]
mov dword [esp + 0x14], eax
movzx esi, word [eax]
sub esi, edx
add esi, dword [esp + 0x30]
js 0x45c91a
cmp esi, ebp
jge 0x45c91a
mov eax, dword [edi + 0x40]
lea ecx, [eax + esi*2]
mov dword [esp + 0x20], ecx
cmp ebx, esi
jle 0x45c8cd
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 0x45c8ec
push esi
push ecx
call fcn.00458dc0
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.0047be80
add esp, 0x1c
test eax, eax
jne 0x45c99d
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 0x45c897
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.0047be80
add esp, 0x1c
test eax, eax
jne 0x45c99d
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.0047fcd0
push edi
push ebp
push esi
push ebx
call fcn.00481b20
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret