Function at 0x42cca0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x34], esi
cmp word [edi + 0x16], 0
mov eax, dword [edi + 0x34]
mov dword [esp + 0x14], eax
jne 0x42cd0b
push 0x4d6ad4
push 0x1043a
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00412760
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [esp + 0x2c]
push 0
push ecx
lea edx, [esp + 0x2c]
mov ecx, eax
call fcn.0042a9e0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x42cf1c
mov eax, dword [edi + 0x24]
add esi, 4
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x4c]
push edi
mov dword [esp + 0x38], esi
call eax
mov edi, dword [esp + 0x28]
lea edx, [ebx + 0xd]
mov word [esp + 0x1a], ax
mov ecx, edi
movzx eax, ax
mov dword [esp + 0x14], eax
call fcn.004260f0
lea eax, [esp + 0x14]
mov ecx, edi
push eax
lea eax, [esp + 0x38]
push eax
lea edx, [ebx + 1]
call fcn.0042c6f0
mov ebx, eax
add esp, 0x10
mov dword [esp + 0xc], ebx
test ebx, ebx
jne 0x42cf1e
mov ecx, dword [esp + 0x14]
mov ax, word [ecx + 0x24]
sub ax, word [edi + 0x12]
sub ax, word [esp + 0x12]
sub ax, 2
mov word [edi + 0x14], ax
cmp byte [ecx + 0x11], bl
je 0x42ce14
mov edx, dword [esp + 0x28]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 4]
push 5
call fcn.00424db0
mov ax, word [esp + 0x1e]
add esp, 0xc
mov ebx, dword [esp + 0xc]
cmp ax, word [edi + 0x10]
jbe 0x42ce14
test ebx, ebx
jne 0x42ce14
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x20]
mov eax, dword [edi + 0x50]
push edi
call eax
movzx eax, word [esp + 0x54]
add esp, 0xc
cmp eax, dword [esp + 0x44]
jae 0x42ce14
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0xc]
mov ecx, dword [edi + 0x34]
push eax
movzx eax, word [esp + 0x4e]
push dword [edi + 4]
push 3
mov edx, dword [eax + edx - 4]
bswap edx
call fcn.00424db0
mov ebx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [esp + 0x24]
movzx ecx, word [edx + 0x16]
mov eax, dword [edx + 0x40]
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [edx + 0x18]
movzx ecx, cx
and ecx, eax
add ecx, dword [edx + 0x38]
mov edx, ecx
lea eax, [ecx + 9]
mov esi, eax
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [edx + 1]
test al, al
jns 0x42ce4f
mov edx, ecx
cmp ecx, esi
jb 0x42ce40
mov esi, dword [esp + 0x30]
lea eax, [ecx + 9]
mov dword [esp + 0x14], eax
mov edx, ecx
mov edi, eax
nop
mov al, byte [ecx]
lea ecx, [edx + 1]
mov byte [esi], al
inc esi
test al, al
jns 0x42ce72
mov edx, ecx
cmp ecx, edi
jb 0x42ce60
mov edi, dword [esp + 0x20]
test ebx, ebx
jne 0x42cea8
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x28]
push dword [eax + 4]
mov eax, dword [esp + 0x3c]
sub esi, eax
push 0
push esi
mov esi, dword [esp + 0x28]
mov ecx, esi
push eax
movzx edx, word [esi + 0x16]
call fcn.0042c3f0
mov ebx, dword [esp + 0x20]
add esp, 0x14
jmp 0x42ceac
mov esi, dword [esp + 0x18]
movzx ecx, byte [esi + 9]
mov eax, dword [esi + 0x38]
mov edx, dword [esp + 0x28]
bswap edx
mov dword [ecx + eax + 8], edx
mov ecx, dword [edi + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x42cf17
mov edx, dword [ecx + 0x14]
dec dword [edx + 0x78]
mov eax, dword [edx + 0x88]
mov dword [ecx + 0x10], eax
mov esi, dword [edx + 0x3c]
mov eax, dword [edx + 0x98]
mov dword [edx + 0x88], ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x18]
mov edi, dword [esi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.004c2a20
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret
call fcn.0041a3d0
mov eax, ebx
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret