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

Disassembly:
sub esp, 0x13c
mov eax, dword [0x6d6ec0]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
mov ebx, dword [esp + 0x144]
lea eax, [esp + 0x84]
push ebp
push esi
mov esi, dword [esp + 0x154]
xor ebp, ebp
push 0x40
push ebp
push eax
mov dword [esp + 0x54], ebx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x148], ebp
mov byte [esp + 0x14c], 0
call fcn.00621d30
mov eax, dword [ebx + 0x34]
add esp, 0xc
mov dword [esp + 0x30], eax
test esi, esi
jne 0x56b367
lea eax, [esi + 7]
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.0061f478
add esp, 0x13c
ret
movzx edx, word [ebx + 0x18]
movzx ecx, byte [ebx + 0xc]
push edi
lea esi, [ecx + edx]
cmp esi, 2
jae 0x56b37c
xor edi, edi
jmp 0x56b3ae
mov eax, dword [esp + 0x154]
test eax, eax
jne 0x56b38b
xor edi, edi
jmp 0x56b3a0
cmp eax, esi
jne 0x56b39d
mov eax, dword [esp + 0x160]
lea edi, [eax - 2]
add edi, esi
jmp 0x56b3a7
lea edi, [eax - 1]
mov eax, dword [esp + 0x160]
mov esi, 2
sub esi, eax
mov dword [esp + 0x44], edi
lea eax, [esi + 1]
sub edi, ecx
mov dword [esp + 0x40], eax
lea ecx, [edi + esi]
cmp ecx, edx
jne 0x56b3cb
movzx ecx, byte [ebx + 9]
add ecx, 8
jmp 0x56b3df
mov eax, dword [ebx + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x1a]
movzx ecx, cx
and ecx, eax
add ecx, dword [ebx + 0x38]
mov dword [esp + 0x3c], ecx
mov ebx, dword [ecx]
bswap ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x30], ebx
nop dword [eax]
nop word [eax + eax]
lea edi, [esi*4]
test ebp, ebp
jne 0x56c668
push ebp
lea eax, [esp + 0xd4]
add eax, edi
push eax
push ebx
push dword [esp + 0x40]
call fcn.00580900
mov ebp, eax
add esp, 0x10
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x56c668
lea ebx, [esp + 0xd0]
mov eax, dword [ebx + edi]
cmp dword [eax + 0x14], ebp
jge 0x56b463
push eax
call fcn.0056d2d0
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x56b573
mov eax, dword [ebx + edi]
mov ebx, dword [esp + 0x20]
add ebx, 4
movzx eax, word [eax + 0x18]
add ebx, eax
mov eax, esi
dec esi
mov dword [esp + 0x20], ebx
test eax, eax
je 0x56b58d
mov edi, dword [esp + 0x4c]
mov dl, byte [edi + 0xc]
test dl, dl
je 0x56b4cb
mov eax, dword [esp + 0x44]
movzx ecx, word [edi + 0x1c]
add eax, esi
cmp eax, ecx
jne 0x56b4cb
mov eax, dword [edi + 0x24]
push eax
mov dword [esp + esi*4 + 0x74], eax
push edi
mov ebx, dword [eax]
mov eax, dword [edi + 0x4c]
bswap ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x38], ebx
call eax
movzx eax, ax
add esp, 8
mov dword [esp + esi*4 + 0xf0], eax
mov byte [edi + 0xc], 0
jmp 0x56b400
mov ecx, dword [esp + 0x44]
mov ebp, edi
movzx eax, dl
sub ecx, eax
add ecx, esi
mov eax, dword [ebp + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebp + 0x1a]
movzx edi, cx
and edi, eax
add edi, dword [ebp + 0x38]
push edi
push ebp
mov dword [esp + esi*4 + 0x78], edi
mov eax, dword [edi]
bswap eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x4c]
call eax
mov edx, dword [esp + 0x3c]
add esp, 8
movzx ebx, ax
mov dword [esp + esi*4 + 0xf0], ebx
test byte [edx + 0x18], 0xc
je 0x56b546
mov ecx, edi
sub ecx, dword [ebp + 0x38]
lea eax, [ebx + ecx]
cmp eax, dword [edx + 0x28]
jg 0x56b546
mov eax, dword [esp + 0x64]
push ebx
add eax, ecx
push edi
push eax
call fcn.006217b0
sub edi, dword [ebp + 0x38]
add esp, 0xc
add edi, dword [esp + 0x64]
mov dword [esp + esi*4 + 0x70], edi
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x24]
push eax
movzx eax, byte [ebp + 0xc]
sub ecx, eax
push ebx
add ecx, esi
push ecx
push ebp
call fcn.005760f0
mov ebp, dword [esp + 0x34]
add esp, 0x10
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x1c], ebp
jmp 0x56b400
push edi
lea eax, [esp + 0xd4]
push 0
push eax
call fcn.00621d30
add esp, 0xc
xor edi, edi
jmp 0x56bf25
mov eax, dword [esp + 0x34]
lea esi, [ebx + 3]
and esi, 0xfffffffc
mov eax, dword [eax + 0x24]
lea ecx, [esi + esi*2]
lea eax, [eax + ecx*2]
cdq
push edx
push eax
call fcn.005bcc80
mov edi, eax
add esp, 8
mov dword [esp + 0x98], edi
test edi, edi
jne 0x56b5c0
lea ebp, [eax + 7]
jmp 0x56bf25
mov ecx, dword [esp + 0xd0]
lea eax, [edi + esi*4]
mov ebx, dword [esp + 0x40]
xor edx, edx
mov dword [esp + 0x9c], eax
lea eax, [eax + esi*2]
mov dword [esp + 0x2c], eax
movzx eax, byte [ecx + 8]
shl ax, 2
movzx eax, ax
mov dword [esp + 0x54], eax
mov al, byte [ecx + 2]
mov byte [esp + 0x13], al
movzx eax, al
mov dword [esp + 0x94], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x38], edx
test ebx, ebx
jle 0x56b84b
mov ebx, dword [esp + 0x90]
nop word [eax + eax]
mov edi, dword [esp + edx*4 + 0xd0]
mov ecx, dword [ecx + 0x38]
mov dword [esp + 0x48], edi
movzx eax, word [edi + 0x18]
mov ebp, dword [edi + 0x38]
movzx esi, word [edi + 0x12]
mov dword [esp + 0x20], eax
add esi, ebp
movzx eax, word [edi + 0x1a]
mov edx, eax
mov dword [esp + 0x58], eax
mov al, byte [ebp]
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], edx
mov dword [esp + 0x14], esi
cmp al, byte [ecx]
jne 0x56b933
movzx eax, byte [edi + 0xc]
add eax, dword [esp + 0x20]
add eax, eax
push eax
mov eax, dword [esp + 0xa0]
push 0
lea eax, [eax + ebx*2]
push eax
call fcn.00621d30
add esp, 0xc
cmp byte [edi + 0xc], 0
jbe 0x56b705
movzx edx, word [edi + 0x1c]
cmp dword [esp + 0x20], edx
jb 0x56b81d
test edx, edx
je 0x56b6d3
mov edi, dword [esp + 0x68]
nop dword [eax]
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
movzx eax, di
movzx ecx, cx
and ecx, eax
mov eax, dword [esp + 0x98]
add ecx, ebp
mov dword [eax + ebx*4], ecx
inc ebx
sub edx, 1
jne 0x56b6a0
mov edi, dword [esp + 0x48]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x14], esi
xor edx, edx
cmp byte [edi + 0xc], dl
jbe 0x56b705
mov esi, dword [esp + 0x98]
lea ecx, [edi + 0x24]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
mov dword [esi + ebx*4], eax
inc edx
movzx eax, byte [edi + 0xc]
inc ebx
cmp edx, eax
jl 0x56b6e4
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x90], ebx
movzx eax, word [edi + 0x12]
movzx ecx, word [edi + 0x18]
add eax, ebp
lea edx, [eax + ecx*2]
cmp esi, edx
jae 0x56b74e
mov edi, dword [esp + 0x58]
nop word [eax + eax]
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
movzx eax, di
movzx ecx, cx
and ecx, eax
mov eax, dword [esp + 0x98]
add ecx, ebp
mov dword [eax + ebx*4], ecx
inc ebx
cmp esi, edx
jb 0x56b720
mov edi, dword [esp + 0x48]
mov dword [esp + 0x90], ebx
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
dec eax
mov dword [esp + edx*4 + 0x118], ebx
cmp edx, eax
jge 0x56b806
cmp byte [esp + 0x13], 0
jne 0x56b806
movzx eax, word [esp + edx*4 + 0xf0]
mov ecx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
push eax
push dword [esp + edx*4 + 0x74]
add esi, ebp
mov word [ecx + ebx*2], ax
add ebp, eax
push esi
mov dword [esp + 0x34], ebp
call fcn.006217b0
mov ecx, dword [esp + 0x60]
add esp, 0xc
mov edx, dword [esp + 0x9c]
movzx eax, cx
add eax, esi
mov esi, dword [esp + 0x98]
mov dword [esi + ebx*4], eax
mov ax, word [edx + ebx*2]
sub ax, cx
mov word [edx + ebx*2], ax
cmp byte [edi + 8], 0
movzx ecx, ax
jne 0x56b7dd
mov eax, dword [edi + 0x38]
mov ecx, dword [esi + ebx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x56b7fa
cmp ecx, 4
jae 0x56b7fa
mov eax, dword [esp + 0x2c]
mov byte [eax + ebp], 0
inc ebp
inc word [edx + ebx*2]
cmp word [edx + ebx*2], 4
jb 0x56b7e6
mov dword [esp + 0x28], ebp
mov edx, dword [esp + 0x38]
inc ebx
mov dword [esp + 0x90], ebx
inc edx
mov dword [esp + 0x38], edx
cmp edx, dword [esp + 0x40]
jge 0x56b847
mov ecx, dword [esp + 0xd0]
jmp 0x56b620
push 0x69379c
push 0x13434
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00553fa0
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x56bf25
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x54]
xor edx, edx
movzx ebp, ax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], edx
mov eax, dword [eax + 0x28]
add eax, 0xfffffff4
add ebp, eax
xor eax, eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x28], eax
test ebx, ebx
jle 0x56b97b
mov ecx, ebx
lea esi, [esp + 0x118]
lea edi, [esp + 0x104]
rep movsd dword es:[edi], dword [esi]
nop dword [eax + eax]
lea ebx, [eax*4]
mov esi, dword [esp + ebx + 0xd0]
mov ecx, dword [esp + ebx + 0x118]
mov eax, dword [esi + 0x3c]
mov dword [esp + edx*4 + 0xa0], eax
mov dword [esp + edx*4 + 0xb8], ecx
test edx, edx
je 0x56b8c8
cmp ecx, dword [esp + edx*4 + 0xb4]
jne 0x56b8c8
dec edx
mov dword [esp + 0x14], edx
cmp byte [esp + 0x13], 0
jne 0x56b8ec
mov eax, dword [esp + 0x4c]
inc edx
mov dword [esp + 0x14], edx
mov eax, dword [eax + 0x3c]
mov dword [esp + edx*4 + 0xa0], eax
lea eax, [ecx + 1]
mov dword [esp + edx*4 + 0xb8], eax
mov edi, ebp
xor ebp, ebp
sub edi, dword [esi + 0x14]
cmp byte [esi + 0xc], 0
mov dword [esp + ebx + 0xf0], edi
jbe 0x56b95d
lea ebx, [esi + 0x24]
push dword [ebx]
mov eax, dword [esi + 0x4c]
push esi
call eax
movzx eax, ax
lea ebx, [ebx + 4]
add eax, 2
inc ebp
add edi, eax
add esp, 8
movzx eax, byte [esi + 0xc]
cmp ebp, eax
jl 0x56b903
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov dword [esp + eax*4 + 0xf0], edi
jmp 0x56b961
push 0x69379c
push 0x1341c
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00553fa0
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x56bf25
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x40]
inc eax
mov ebp, dword [esp + 0x38]
inc edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], edx
cmp eax, ebx
jl 0x56b890
mov ecx, ebx
mov dword [esp + 0x20], 0
test ebx, ebx
mov dword [esp + 0x14], ecx
mov ebx, dword [esp + 0x90]
jle 0x56bb8b
mov eax, 1
xor edi, edi
mov dword [esp + 0x28], eax
mov ebp, dword [esp + edi + 0xf0]
mov edx, dword [esp + 0x38]
cmp ebp, edx
jle 0x56ba94
mov esi, dword [esp + 0x90]
lea edx, [esp + 0xf4]
add edx, edi
cmp eax, ecx
jl 0x56b9e5
inc eax
mov dword [esp + 0x14], eax
cmp eax, 5
jg 0x56bc9e
mov dword [edx], 0
mov dword [esp + edi + 0x108], esi
mov ebx, dword [esp + edi + 0x104]
mov edx, dword [esp + 0x9c]
lea ecx, [ebx - 1]
movzx eax, word [edx + ecx*2]
test ax, ax
jne 0x56ba1a
push ecx
lea eax, [esp + 0x94]
push eax
call fcn.00572ab0
mov edx, dword [esp + 0xa4]
add esp, 8
movzx eax, ax
mov ebp, dword [esp + edi + 0xf0]
movzx ecx, ax
add ecx, 2
sub ebp, ecx
cmp byte [esp + 0x13], 0
mov dword [esp + edi + 0xf0], ebp
jne 0x56ba62
cmp ebx, esi
jge 0x56ba60
movzx eax, word [edx + ebx*2]
test ax, ax
jne 0x56ba58
lea eax, [esp + 0x90]
push ebx
push eax
call fcn.00572ab0
add esp, 8
movzx eax, ax
movzx ecx, ax
add ecx, 2
jmp 0x56ba62
xor ecx, ecx
lea edx, [esp + 0xf4]
add edx, edi
lea eax, [ebx - 1]
mov dword [esp + edi + 0x104], eax
mov eax, dword [esp + 0x28]
add dword [edx], ecx
mov ecx, dword [esp + 0x14]
cmp ebp, dword [esp + 0x38]
jg 0x56b9c6
mov ebx, dword [esp + 0x90]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + edi + 0x104]
cmp esi, ebx
jge 0x56bb43
mov ecx, dword [esp + 0x9c]
nop word [eax + eax]
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x56bad8
lea eax, [esp + 0x90]
push esi
push eax
call fcn.00572ab0
mov ecx, dword [esp + 0xa4]
add esp, 8
mov edx, dword [esp + 0x38]
movzx eax, ax
movzx eax, ax
add eax, 2
add ebp, eax
cmp ebp, edx
jg 0x56bb3f
inc esi
mov dword [esp + edi + 0xf0], ebp
cmp byte [esp + 0x13], 0
mov dword [esp + edi + 0x104], esi
jne 0x56bb30
cmp esi, ebx
jge 0x56bb2e
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x56bb26
lea eax, [esp + 0x90]
push esi
push eax
call fcn.00572ab0
mov ecx, dword [esp + 0xa4]
add esp, 8
mov edx, dword [esp + 0x38]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x56bb30
xor eax, eax
sub dword [esp + edi + 0xf4], eax
cmp esi, ebx
jl 0x56bab0
cmp esi, ebx
jl 0x56bb53
mov eax, dword [esp + 0x28]
mov ecx, eax
mov edx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
jmp 0x56bb76
mov edx, dword [esp + 0x20]
test edx, edx
jle 0x56bb64
mov eax, dword [esp + edi + 0x100]
jmp 0x56bb66
xor eax, eax
cmp esi, eax
jle 0x56bcc8
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
inc edx
inc eax
add edi, 4
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], eax
cmp edx, ecx
jl 0x56b9a3
lea eax, [ecx - 1]
mov edx, 1
mov dword [esp + 0x28], eax
test eax, eax
jle 0x56bd80
lea ecx, [esp + 0xf0]
sub ecx, 4
lea edx, [esp + 0x104]
sub edx, 4
mov dword [esp + 0x48], ecx
lea edi, [esp + 0xf0]
mov dword [esp + 0x20], edx
mov esi, dword [edx + eax*4]
mov ecx, dword [ecx + eax*4]
dec esi
mov edi, dword [edi + eax*4]
mov eax, esi
sub eax, dword [esp + 0x5c]
mov dword [esp + 0x1c], ecx
inc eax
mov ecx, dword [esp + 0x9c]
cmp word [ecx + eax*2], 0
lea ebp, [ecx + eax*2]
mov dword [esp + 0x2c], ebp
jne 0x56bbfd
push eax
lea eax, [esp + 0x94]
push eax
call fcn.00572ab0
add esp, 8
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x9c]
movzx eax, word [eax + esi*2]
test ax, ax
jne 0x56bc25
lea eax, [esp + 0x90]
push esi
push eax
call fcn.00572ab0
add esp, 8
movzx eax, ax
movzx ebp, word [ebp]
movzx edx, ax
mov dword [esp + 0x58], edx
test edi, edi
je 0x56bc6b
cmp dword [esp + 0x160], 0
jne 0x56bcf2
mov ecx, dword [esp + 0x14]
mov eax, 2
dec ecx
cmp ebx, ecx
mov ecx, 0
cmove eax, ecx
mov ecx, dword [esp + 0x1c]
sub ecx, eax
lea eax, [ebp + 2]
sub ecx, edx
add eax, edi
cmp eax, ecx
jg 0x56bcf2
mov ecx, dword [esp + 0x1c]
add ebp, 2
mov eax, 0xfffffffe
add edi, ebp
mov ebp, dword [esp + 0x2c]
sub eax, edx
mov edx, dword [esp + 0x20]
add ecx, eax
sub ebp, 2
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x2c], ebp
mov dword [edx + ebx*4], esi
sub esi, 1
jns 0x56bc01
jmp 0x56bcfa
push 0x69379c
push 0x13499
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00553fa0
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x56bf25
push 0x69379c
push 0x134ba
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00553fa0
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x56bf25
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
lea ebx, [esp + 0xf0]
mov esi, dword [esp + 0x48]
mov dword [ebx + eax*4], edi
mov ebx, dword [esp + 0x90]
mov dword [esi + eax*4], ecx
cmp eax, 1
jle 0x56bd21
mov ecx, dword [edx + eax*4 - 4]
jmp 0x56bd23
xor ecx, ecx
cmp dword [edx + eax*4], ecx
jle 0x56bd56
dec eax
lea edi, [esp + 0xf0]
mov dword [esp + 0x28], eax
mov ecx, esi
test eax, eax
jg 0x56bbc2
mov eax, dword [esp + 0xd0]
xor esi, esi
mov eax, dword [eax + 0x38]
lea edx, [esi + 1]
movzx eax, byte [eax]
mov dword [esp + 0x28], eax
jmp 0x56bda0
push 0x69379c
push 0x134e6
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00553fa0
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x56bf25
mov eax, dword [esp + 0xd0]
xor esi, esi
mov eax, dword [eax + 0x38]
movzx eax, byte [eax]
mov dword [esp + 0x28], eax
test ecx, ecx
jle 0x56bf8a
nop dword [eax + eax]
cmp esi, dword [esp + 0x40]
jge 0x56be54
mov edi, dword [esp + esi*4 + 0xd0]
mov dword [esp + esi*4 + 0xdc], edi
mov dword [esp + esi*4 + 0xd0], 0
mov dword [esp + 0x2c], edi
mov ecx, dword [edi + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x56bded
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x56bded
cmp dword [edx + 0x68], 0
je 0x56bde9
push ecx
call fcn.005eae20
jmp 0x56be13
xor ebp, ebp
jmp 0x56be18
mov ebp, dword [edx + 0x2c]
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x56be1c
mov eax, dword [edx + 0x9c]
push ecx
cmp eax, dword [edx + 0xa8]
jbe 0x56be0e
call fcn.005901f0
jmp 0x56be13
call fcn.005914e0
add esp, 4
mov ebp, eax
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x154]
xor ecx, ecx
sub eax, dword [esp + 0x44]
inc dword [esp + 0x18]
cmp esi, eax
mov eax, dword [edi + 0x48]
sete cl
mov dword [esp + 0x24], ebp
inc ecx
cmp dword [eax + 0x20], ecx
je 0x56be47
test ebp, ebp
je 0x56befe
test ebp, ebp
jne 0x56bf21
jmp 0x56bee9
cmp dword [esp + 0x160], 0
mov eax, dword [esp + 0x50]
push 0
cmovne eax, edx
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x44]
call fcn.00568150
mov ebp, eax
add esp, 0x14
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x56bf21
push dword [esp + 0x28]
mov edi, dword [esp + 0x30]
push edi
call fcn.00604020
mov ecx, dword [esp + 0x3c]
add esp, 8
inc dword [esp + 0x18]
mov dword [esp + esi*4 + 0xdc], edi
mov dword [esp + esi*4 + 0x118], ebx
cmp byte [ecx + 0x11], 0
je 0x56bee1
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x50]
push dword [eax + 4]
push 5
push dword [edi + 4]
push ecx
call fcn.00594a70
mov ebp, dword [esp + 0x38]
add esp, 0x14
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x56bf21
mov eax, dword [esp + 0x30]
mov dword [esp + 0x50], eax
inc esi
cmp esi, dword [esp + 0x14]
jge 0x56bf8a
mov edx, 1
jmp 0x56bda0
push 0x69379c
push 0x13507
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00553fa0
add esp, 0x14
mov ebp, 0xb
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x98]
test ebx, ebx
je 0x56c67b
cmp dword [0x6d4c38], 0
je 0x56c671
mov eax, dword [0x6ecdc0]
test eax, eax
je 0x56bf54
push eax
call dword [0x6d4c88]
add esp, 4
push ebx
call dword [0x6d4c64]
sub dword [0x6ecd58], eax
dec dword [0x6ecd7c]
push ebx
call dword [0x6d4c5c]
mov eax, dword [0x6ecdc0]
add esp, 8
test eax, eax
je 0x56c67b
push eax
call dword [0x6d4c90]
jmp 0x56c678
mov edi, dword [esp + 0x18]
xor ecx, ecx
test edi, edi
jle 0x56bfaa
mov eax, dword [esp + ecx*4 + 0xdc]
mov eax, dword [eax + 4]
mov dword [esp + ecx*4 + 0x12c], eax
inc ecx
cmp ecx, edi
jl 0x56bf94
lea ebx, [edi - 1]
xor ebp, ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], ebp
test ebx, ebx
jle 0x56c09c
mov eax, ebx
lea esi, [ebp + 1]
mov ebx, ebp
cmp esi, edi
jge 0x56c08f
nop
mov eax, dword [esp + esi*4 + 0xdc]
mov ecx, esi
mov edx, dword [esp + ebx*4 + 0xdc]
mov eax, dword [eax + 4]
cmp eax, dword [edx + 4]
cmovae ecx, ebx
inc esi
mov ebx, ecx
cmp esi, edi
jl 0x56bfd0
mov dword [esp + 0x2c], ebx
cmp ebx, ebp
je 0x56c08b
mov edi, dword [esp + 0x34]
xor edx, edx
mov eax, dword [0x6d4e28]
mov ecx, dword [esp + ebx*4 + 0xdc]
mov esi, dword [esp + ebp*4 + 0xdc]
div dword [edi + 0x24]
mov ebx, dword [ecx + 4]
mov edx, dword [esi + 0x48]
inc eax
mov ecx, dword [ecx + 0x48]
mov ebp, dword [esi + 4]
push eax
movzx esi, word [edx + 0x1c]
movzx edi, word [ecx + 0x1c]
push edx
mov word [edx + 0x1c], di
call fcn.005c0720
mov eax, dword [esp + 0x34]
push ebp
mov eax, dword [esp + eax*4 + 0xe8]
mov eax, dword [eax + 0x48]
push eax
mov word [eax + 0x1c], si
call fcn.005c0720
mov esi, dword [esp + 0x40]
push ebx
mov eax, dword [esp + esi*4 + 0xf0]
mov eax, dword [eax + 0x48]
push eax
mov word [eax + 0x1c], di
call fcn.005c0720
mov eax, dword [esp + esi*4 + 0xf4]
add esp, 0x18
mov edi, dword [esp + 0x18]
mov dword [eax + 4], ebx
mov eax, dword [esp + 0x2c]
mov eax, dword [esp + eax*4 + 0xdc]
mov dword [eax + 4], ebp
mov ebp, esi
mov eax, dword [esp + 0x20]
inc ebp
mov dword [esp + 0x30], ebp
cmp ebp, eax
jl 0x56bfc1
test byte [esp + 0x28], 8
mov eax, dword [esp + edi*4 + 0xd8]
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax + 4]
bswap eax
mov dword [ecx], eax
jne 0x56c0e5
mov ecx, dword [esp + 0x40]
cmp ecx, edi
je 0x56c0e5
lea edx, [esp + 0xd0]
lea eax, [esp + 0xdc]
cmovge eax, edx
mov eax, dword [eax + ecx*4 - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [esp + edi*4 + 0xd8]
mov ecx, dword [eax + 0x38]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x90]
cmp byte [eax + 0x11], 0
je 0x56c2f7
mov edi, dword [esp + 0xdc]
xor ebp, ebp
xor ebx, ebx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x30], ebp
movzx edx, word [edi + 0x18]
movzx eax, byte [edi + 0xc]
add edx, eax
mov dword [esp + 0x20], edx
test esi, esi
jle 0x56c2f3
mov eax, edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x98]
mov ecx, dword [ecx + ebp*4]
mov dword [esp + 0x48], ecx
cmp ebp, edx
jne 0x56c189
mov esi, dword [esp + 0x18]
xor eax, eax
cmp byte [esp + 0x13], al
sete al
mov dword [esp + 0x5c], eax
inc ebx
cmp ebx, esi
jge 0x56c162
mov edi, dword [esp + ebx*4 + 0xdc]
jmp 0x56c169
mov edi, dword [esp + ebx*4 + 0xd0]
movzx eax, word [edi + 0x18]
add eax, dword [esp + 0x5c]
movzx ecx, byte [edi + 0xc]
add ecx, eax
add edx, ecx
cmp ebp, edx
je 0x56c154
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], edx
mov esi, dword [esp + 0x2c]
cmp ebp, dword [esp + esi + 0x104]
mov esi, dword [esp + 0x90]
jne 0x56c1c3
mov eax, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x3c], eax
shl eax, 2
cmp byte [esp + 0x13], 0
mov dword [esp + 0x2c], eax
mov eax, dword [esp + eax + 0xdc]
mov dword [esp + 0x14], eax
je 0x56c2e6
cmp ebx, dword [esp + 0x18]
jge 0x56c1e7
mov eax, dword [eax + 4]
cmp eax, dword [esp + ebx*4 + 0x12c]
mov eax, dword [esp + 0x14]
jne 0x56c1e7
cmp ecx, dword [edi + 0x38]
jb 0x56c1e7
cmp ecx, dword [edi + 0x3c]
jb 0x56c2e6
cmp word [esp + 0x54], 0
jne 0x56c214
lea edx, [esp + 0x24]
push edx
push dword [eax + 4]
mov eax, dword [ecx]
push 5
bswap eax
push eax
push dword [esp + 0x44]
call fcn.00594a70
mov ebp, dword [esp + 0x38]
add esp, 0x14
mov dword [esp + 0x1c], ebp
jmp 0x56c218
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x9c]
movzx ecx, word [ecx + eax*2]
test cx, cx
jne 0x56c240
push eax
lea eax, [esp + 0x94]
push eax
call fcn.00572ab0
add esp, 8
movzx ecx, ax
mov eax, dword [esp + 0x14]
cmp cx, word [eax + 0x10]
jbe 0x56c2d0
test ebp, ebp
jne 0x56bf21
mov ebp, dword [esp + 0x48]
lea ecx, [esp + 0x78]
push ecx
push ebp
push eax
mov eax, dword [eax + 0x50]
call eax
movzx eax, word [esp + 0x94]
add esp, 0xc
cmp eax, dword [esp + 0x84]
jae 0x56c2da
mov ecx, dword [edi + 0x3c]
cmp ebp, ecx
jae 0x56c29c
add eax, ebp
cmp eax, ecx
jbe 0x56c29c
push 0x119c2
call fcn.005a8380
mov ebp, eax
add esp, 4
mov dword [esp + 0x24], ebp
jmp 0x56c2c8
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
movzx eax, word [esp + 0x8e]
push dword [ecx + 4]
mov eax, dword [eax + ebp - 4]
push 3
bswap eax
push eax
push dword [ecx + 0x34]
call fcn.00594a70
mov ebp, dword [esp + 0x38]
add esp, 0x14
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x56bf21
jmp 0x56c2de
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
inc ebp
mov dword [esp + 0x30], ebp
cmp ebp, esi
jl 0x56c131
mov edi, dword [esp + 0x18]
xor ebx, ebx
lea eax, [edi - 1]
mov dword [esp + 0x3c], ebx
test eax, eax
jle 0x56c498
mov eax, dword [esp + 0x54]
movzx ebp, ax
mov dword [esp + 0x58], ebp
nop dword [eax]
nop word [eax + eax]
mov edi, dword [esp + ebx*4 + 0x104]
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + ebx*4 + 0xdc]
mov esi, dword [esp + 0x90]
mov dword [esp + 0x5c], ecx
mov ebx, dword [eax + edi*4]
mov eax, dword [esp + 0x9c]
movzx eax, word [eax + edi*2]
lea edx, [eax + ebp]
mov ebp, dword [esp + 0x64]
add ebp, dword [esp + 0x60]
cmp byte [ecx + 8], 0
jne 0x56c36c
mov ecx, dword [ecx + 0x38]
mov eax, dword [ebx]
mov dword [ecx + 8], eax
jmp 0x56c416
cmp byte [esp + 0x13], 0
je 0x56c3fd
lea eax, [esp + 0x78]
dec edi
push eax
mov eax, dword [esp + 0x9c]
push dword [eax + edi*4]
mov eax, dword [ecx + 0x50]
push ecx
call eax
mov edx, dword [esp + 0x88]
mov ebx, ebp
mov ecx, dword [esp + 0x84]
add esp, 0xc
add ebp, 4
test edx, edx
ja 0x56c3eb
jb 0x56c3ae
cmp ecx, 0x7f
ja 0x56c3c0
mov eax, 1
and cl, 0x7f
mov byte [ebp], cl
xor ebp, ebp
lea edx, [eax + 4]
jmp 0x56c416
test edx, edx
ja 0x56c3eb
jb 0x56c3ce
cmp ecx, 0x3fff
ja 0x56c3eb
mov eax, ecx
and cl, 0x7f
shrd eax, edx, 7
mov byte [ebp + 1], cl
or al, 0x80
mov byte [ebp], al
mov eax, 2
xor ebp, ebp
lea edx, [eax + 4]
jmp 0x56c416
push edx
push ecx
push ebp
call fcn.00595360
add esp, 0xc
xor ebp, ebp
lea edx, [eax + 4]
jmp 0x56c416
sub ebx, 4
cmp eax, 4
jne 0x56c416
mov eax, dword [esp + 0x4c]
push ebx
push eax
mov eax, dword [eax + 0x4c]
call eax
add esp, 8
movzx edx, ax
add dword [esp + 0x60], edx
xor eax, eax
nop dword [eax]
cmp dword [esp + eax*4 + 0xb8], edi
jg 0x56c42f
inc eax
cmp eax, 6
jl 0x56c420
mov ecx, dword [esp + eax*4 + 0xa0]
cmp ebx, ecx
jae 0x56c441
lea eax, [edx + ebx]
cmp eax, ecx
ja 0x56c489
mov eax, dword [esp + 0x5c]
push dword [eax + 4]
mov eax, dword [esp + 0x48]
push ebp
push edx
push ebx
mov ebx, dword [esp + 0x4c]
add eax, ebx
push eax
push dword [esp + 0x60]
call fcn.00582390
mov edi, dword [esp + 0x30]
mov ebp, eax
add esp, 0x18
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x56bf25
inc ebx
lea eax, [edi - 1]
mov dword [esp + 0x3c], ebx
cmp ebx, eax
jge 0x56c49c
mov ebp, dword [esp + 0x58]
jmp 0x56c320
push 0x69379c
push 0x135cf
jmp 0x56bf08
mov ebp, dword [esp + 0x1c]
mov ecx, 1
sub ecx, edi
mov dword [esp + 0x3c], ecx
cmp ecx, edi
jge 0x56c584
nop
mov eax, ecx
cdq
mov edi, eax
xor edi, edx
sub edi, edx
cmp byte [esp + edi + 0x140], 0
jne 0x56c573
lea ebx, [edi*4]
test ecx, ecx
jns 0x56c4e6
mov eax, dword [esp + ebx + 0x114]
cmp eax, dword [esp + ebx + 0x100]
jl 0x56c573
test edi, edi
jne 0x56c4f7
mov edx, dword [esp + 0x104]
xor eax, eax
xor ecx, ecx
jmp 0x56c52a
cmp edi, dword [esp + 0x40]
jge 0x56c50f
xor eax, eax
cmp byte [esp + 0x13], al
sete al
add eax, dword [esp + ebx + 0x114]
jmp 0x56c511
mov eax, esi
mov edx, dword [esp + ebx + 0x104]
xor ecx, ecx
cmp byte [esp + 0x13], cl
sete cl
add ecx, dword [esp + ebx + 0x100]
sub edx, ecx
lea ebp, [esp + 0x90]
push ebp
push edx
push ecx
push eax
push dword [esp + ebx + 0xec]
call fcn.005762a0
mov ebp, eax
add esp, 0x14
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x56bf21
mov eax, dword [esp + ebx + 0xdc]
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + ebx + 0xf0]
mov byte [esp + edi + 0x140], 1
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x3c], ecx
cmp ecx, edi
jl 0x56c4b0
cmp dword [esp + 0x15c], 0
je 0x56c5ec
mov ebx, dword [esp + 0x4c]
cmp word [ebx + 0x18], 0
jne 0x56c5ec
mov ecx, dword [esp + 0xdc]
movzx eax, byte [ebx + 9]
cmp eax, dword [ecx + 0x14]
jg 0x56c5ec
push 0xffffffffffffffff
push ecx
call fcn.005759b0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
push ebx
push dword [esp + 0xec]
call fcn.00574aa0
mov ebp, dword [esp + 0x38]
add esp, 0x14
test ebp, ebp
jne 0x56c634
mov eax, dword [esp + 0xdc]
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.0057eb40
add esp, 0xc
mov ebp, eax
jmp 0x56c634
mov ecx, dword [esp + 0x34]
cmp byte [ecx + 0x11], 0
je 0x56c634
cmp word [esp + 0x54], 0
jne 0x56c634
xor esi, esi
test edi, edi
jle 0x56c634
mov eax, dword [esp + esi*4 + 0xdc]
lea edx, [esp + 0x24]
push edx
push dword [eax + 4]
mov eax, dword [eax + 0x38]
push 5
mov eax, dword [eax + 8]
bswap eax
push eax
push ecx
call fcn.00594a70
mov ecx, dword [esp + 0x48]
inc esi
add esp, 0x14
cmp esi, edi
jl 0x56c604
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x40]
mov esi, edi
cmp edi, ebx
jge 0x56bf25
mov eax, dword [esp + esi*4 + 0xd0]
test ebp, ebp
jne 0x56c65e
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.0057eb40
add esp, 0xc
mov ebp, eax
inc esi
cmp esi, ebx
jl 0x56c642
jmp 0x56bf25
lea eax, [edi + 4]
push eax
jmp 0x56b574
push ebx
call dword [0x6d4c5c]
add esp, 4
mov ebx, dword [esp + 0x40]
xor esi, esi
test ebx, ebx
jle 0x56c6a0
mov eax, dword [esp + esi*4 + 0xd0]
test eax, eax
je 0x56c69b
push dword [eax + 0x48]
call fcn.005bf940
add esp, 4
inc esi
cmp esi, ebx
jl 0x56c685
xor esi, esi
test edi, edi
jle 0x56c6cb
nop word [eax + eax]
mov eax, dword [esp + esi*4 + 0xdc]
test eax, eax
je 0x56c6c6
push dword [eax + 0x48]
call fcn.005bf940
add esp, 4
inc esi
cmp esi, edi
jl 0x56c6b0
mov ecx, dword [esp + 0x148]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0061f478
add esp, 0x13c
ret