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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x513040]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x54], eax
push edi
mov ebx, edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x2c], ebx
test byte [esi + 1], 0x20
mov edi, dword [esi + 8]
mov dword [esp + 0x1c], edi
je 0x451b3d
mov eax, dword [edi + 4]
mov edx, dword [esi + 0x40]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x451ad4
nop dword [eax]
cmp ecx, esi
je 0x451acd
test edx, edx
je 0x451b1a
cmp dword [ecx + 0x40], edx
je 0x451b1a
mov ecx, dword [ecx + 0x18]
test ecx, ecx
jne 0x451ac0
and byte [esi + 1], 0xdf
cmp dword [esp + 0x58], 0
je 0x451b3d
cmp byte [esi + 0x44], 0
jge 0x451b3d
push 0x504dd4
push 0x13834
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00431e30
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004f5edb
mov esp, ebp
pop ebp
ret
test ecx, ecx
je 0x451ad4
push esi
call fcn.00447900
add esp, 4
test eax, eax
je 0x451ad8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004f5edb
mov esp, ebp
pop ebp
ret
cmp byte [esi], 3
jb 0x451b56
mov ecx, esi
call fcn.0044cd00
test eax, eax
je 0x451b56
cmp eax, 0x10
jne 0x4521f0
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 8]
test eax, eax
jne 0x451d00
cmp byte [edi + 0xb], 0
je 0x451bba
mov eax, dword [esp + 0x1c]
mov edx, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
mov ecx, dword [esi + 0x40]
mov byte [eax + 0xb], 0
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
test eax, eax
je 0x451bb7
mov ebx, dword [esp + 0x1c]
nop dword [eax]
test byte [eax + 1], 0x10
je 0x451bac
mov byte [ebx + 0xb], 1
cmp dword [eax + 0x40], ecx
jne 0x451bac
cmp dword [eax + 0x20], edx
jne 0x451bac
cmp dword [eax + 0x24], edi
jne 0x451bac
mov byte [eax], 1
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x451b90
mov ebx, dword [esp + 0x2c]
mov edx, dword [ebp + 8]
test byte [esi + 1], 2
je 0x451c8b
mov eax, dword [ebx + 8]
cmp eax, dword [esi + 0x20]
jne 0x451c8b
mov eax, dword [ebx + 0xc]
cmp eax, dword [esi + 0x24]
jne 0x451c8b
cmp word [esi + 0x32], 0
je 0x451cb5
mov eax, dword [ebx + 0x1c]
add eax, dword [ebx + 0x20]
mov dword [esp + 0x14], eax
cmp dword [esi + 0x2c], eax
jne 0x451cb5
movzx edi, word [esi + 0x30]
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x74]
lea eax, [edx + edi]
cmp eax, dword [ecx + 0x3c]
ja 0x451c56
movzx eax, word [ecx + 0x12]
add eax, dword [ecx + 0x38]
cmp edx, eax
jb 0x451c56
cmp edi, dword [esp + 0x14]
jne 0x451c3b
push edi
push 0
push ebx
call fcn.00451750
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004f5edb
mov esp, ebp
pop ebp
ret
mov edx, ebx
mov ecx, esi
call fcn.00451900
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004f5edb
mov esp, ebp
pop ebp
ret
push 0x504dd4
push 0x137e3
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00431e30
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004f5edb
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x58], 0
jne 0x451cb5
lea eax, [esp + 0x58]
shr edx, 3
push eax
push dword [ebx + 0xc]
and edx, 1
mov ecx, esi
push dword [ebx + 8]
call fcn.0044cf70
add esp, 0xc
test eax, eax
jne 0x4521f0
mov edi, dword [esi + 0x74]
cmp dword [edi + 0x14], 0
jge 0x451e1f
cmp byte [esi], 1
jbe 0x451e10
push 0x504dd4
push 0x138af
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00431e30
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004f5edb
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x58], 0
jne 0x451cb5
test dl, 2
jne 0x451d76
movzx ecx, word [ebx + 0x18]
test cx, cx
je 0x451d44
mov dword [esp + 0x30], eax
lea edx, [esp + 0x30]
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x58]
mov word [esp + 0x44], cx
mov ecx, esi
push eax
mov byte [esp + 0x4a], 0
mov byte [esp + 0x4e], 0
call fcn.0044d210
add esp, 4
jmp 0x451d64
lea eax, [esp + 0x58]
mov ecx, esi
push eax
mov eax, edx
mov edx, dword [ebx]
shr eax, 3
and eax, 1
push eax
push dword [ebx + 0xc]
push dword [ebx + 8]
call fcn.00447a10
add esp, 0x10
test eax, eax
jne 0x4521f0
cmp dword [esp + 0x58], eax
jne 0x451cb5
mov ecx, esi
call fcn.0044c470
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
cmp dword [esi + 0x20], ecx
jne 0x451cb5
cmp dword [esi + 0x24], eax
jne 0x451cb5
movzx edi, word [esi + 0x30]
mov edx, dword [esi + 0x28]
mov eax, dword [ebx]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x40], eax
lea eax, [edx + edi]
mov dword [esp + 0x50], 0
cmp eax, dword [ecx + 0x3c]
ja 0x451c56
movzx eax, word [ecx + 0x12]
add eax, dword [ecx + 0x38]
cmp edx, eax
jb 0x451c56
cmp edi, dword [ebx + 8]
jne 0x451df3
push edi
lea eax, [esp + 0x34]
push 0
push eax
call fcn.00451750
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004f5edb
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x30]
mov ecx, esi
call fcn.00451900
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004f5edb
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.00449040
test eax, eax
jne 0x4521f0
test byte [ebp + 8], 0x80
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x54]
mov dword [esp + 0x28], edx
je 0x451ec4
mov ecx, dword [ecx + 0x58]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], ecx
cmp ecx, 4
jge 0x451e64
mov ecx, 4
mov dword [esp + 0x24], 4
mov byte [edx + 3], 0
mov dword [esp + 0x10], ecx
mov eax, dword [eax + 4]
cmp byte [eax + 0x11], 0
je 0x451ee6
movzx eax, word [edi + 0xe]
cmp ecx, eax
jbe 0x451ee6
lea eax, [esp + 0x30]
push eax
mov eax, dword [edi + 0x50]
push edx
push edi
call eax
movzx eax, word [esp + 0x4c]
add esp, 0xc
cmp dword [esp + 0x3c], eax
je 0x451ee6
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x2c]
push dword [edi + 4]
push 3
mov edx, dword [edx + eax - 4]
mov eax, dword [esp + 0x28]
bswap edx
mov ecx, dword [eax + 4]
call fcn.00447c10
mov edx, dword [esp + 0x2c]
add esp, 0xc
test edx, edx
jne 0x4521ee
jmp 0x451ee6
lea eax, [esp + 0x10]
mov ecx, edi
push eax
push ebx
call fcn.0044e970
mov edx, eax
add esp, 8
test edx, edx
jne 0x4521ee
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], eax
movzx eax, word [esi + 0x46]
xor edx, edx
mov ecx, eax
mov word [esi + 0x32], dx
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x58], edx
jne 0x452108
movzx eax, word [edi + 0x18]
cmp ecx, eax
jb 0x451f3d
push 0x504dd4
push 0x138d9
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00431e30
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004f5edb
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x451f5e
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x451f5e
cmp dword [edx + 0x68], 0
je 0x451f90
call fcn.004406a0
jmp 0x451f86
mov edx, dword [edx + 0x2c]
test edx, edx
jne 0x4521ee
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + 0x9c]
cmp eax, dword [edx + 0xa8]
jbe 0x451f81
call fcn.00442160
jmp 0x451f86
call fcn.00441f30
mov edx, eax
test edx, edx
jne 0x4521ee
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x1a]
movzx ecx, cx
and ecx, eax
add ecx, dword [edi + 0x38]
cmp byte [edi + 8], 0
mov dword [esp + 0x14], ecx
jne 0x451fbd
mov edx, dword [esp + 0x28]
mov eax, dword [ecx]
mov dword [edx], eax
lea eax, [esp + 0x30]
push eax
mov eax, dword [edi + 0x50]
push ecx
push edi
call eax
mov cx, word [esp + 0x4c]
add esp, 0xc
movzx eax, cx
cmp eax, dword [esp + 0x3c]
je 0x451ff4
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
mov ecx, edi
call fcn.0044e800
mov cx, word [esp + 0x44]
add esp, 4
jmp 0x451ff6
xor eax, eax
and byte [esi + 1], 0xfb
mov edx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
movzx eax, word [esp + 0x42]
cmp eax, edx
jne 0x4520e2
movzx eax, cx
cmp eax, dword [esp + 0x3c]
jne 0x4520dd
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
cmp byte [eax + 0x11], 0
je 0x452035
movzx eax, word [edi + 0x10]
cmp edx, eax
jge 0x4520dd
movzx ecx, byte [edi + 9]
mov eax, dword [edi + 0x38]
add ecx, 0xa
add eax, ecx
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jae 0x45207e
push 0x504dd4
push 0x138f4
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00431e30
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004f5edb
mov esp, ebp
pop ebp
ret
lea eax, [ecx + edx]
cmp eax, dword [edi + 0x3c]
jbe 0x4520bb
push 0x504dd4
push 0x138f7
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00431e30
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004f5edb
mov esp, ebp
pop ebp
ret
push edx
push dword [esp + 0x2c]
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004f5edb
mov esp, ebp
pop ebp
ret
movzx eax, word [esp + 0x42]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push ecx
push eax
mov ecx, edi
call fcn.0044ed20
mov edx, dword [esp + 0x28]
add esp, 8
test edx, edx
jne 0x4521ee
mov ecx, dword [esp + 0x10]
jmp 0x45211c
jge 0x45211c
cmp word [edi + 0x18], dx
jbe 0x45211c
inc eax
and byte [esi + 1], 0xf9
mov word [esi + 0x46], ax
movzx ecx, ax
push dword [esp + 0x24]
mov edx, ecx
mov ecx, edi
push dword [esp + 0x2c]
call fcn.0044f130
add esp, 8
mov edx, eax
cmp byte [edi + 0xc], 0
je 0x4521ee
and byte [esi + 1], 0xf9
mov ecx, esi
call fcn.00451500
test byte [ebp + 8], 2
mov edx, eax
mov eax, dword [esi + 0x74]
mov dword [esp + 0x14], edx
mov byte [eax + 0xc], 0
mov byte [esi], 1
je 0x4521ee
test edx, edx
jne 0x4521ee
mov al, byte [esi + 0x44]
test al, al
js 0x4521ad
xor edi, edi
test al, al
jle 0x45219a
lea ebx, [esi + 0x78]
nop dword [eax]
mov ecx, dword [ebx]
mov ecx, dword [ecx + 0x48]
call fcn.00441c80
movsx eax, byte [esi + 0x44]
lea ebx, [ebx + 4]
inc edi
cmp edi, eax
jl 0x452180
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esi + 0x74]
mov ecx, dword [ecx + 0x48]
call fcn.00441c80
mov edx, dword [esp + 0x14]
mov byte [esi + 0x44], 0xff
cmp dword [esi + 0x70], 0
je 0x4521df
push dword [ebx + 0xc]
push dword [ebx + 8]
call fcn.0042ee10
add esp, 8
mov dword [esi + 0x10], eax
test eax, eax
jne 0x4521cd
lea edx, [eax + 7]
jmp 0x4521df
push dword [ebx + 8]
push dword [ebx]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [esp + 0x20]
add esp, 0xc
mov byte [esi], 3
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
mov eax, edx
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f5edb
mov esp, ebp
pop ebp
ret