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

Disassembly:
sub esp, 0x13c
mov eax, dword [0x6d5ec0]
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.006213c0
mov eax, dword [ebx + 0x34]
add esp, 0xc
mov dword [esp + 0x30], eax
test esi, esi
jne 0x56aa97
lea eax, [esi + 7]
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.0061eb08
add esp, 0x13c
ret
movzx edx, word [ebx + 0x18]
movzx ecx, byte [ebx + 0xc]
push edi
lea esi, [ecx + edx]
cmp esi, 2
jae 0x56aaac
xor edi, edi
jmp 0x56aade
mov eax, dword [esp + 0x154]
test eax, eax
jne 0x56aabb
xor edi, edi
jmp 0x56aad0
cmp eax, esi
jne 0x56aacd
mov eax, dword [esp + 0x160]
lea edi, [eax - 2]
add edi, esi
jmp 0x56aad7
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 0x56aafb
movzx ecx, byte [ebx + 9]
add ecx, 8
jmp 0x56ab0f
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 0x56bd98
push ebp
lea eax, [esp + 0xd4]
add eax, edi
push eax
push ebx
push dword [esp + 0x40]
call fcn.00580020
mov ebp, eax
add esp, 0x10
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x56bd98
lea ebx, [esp + 0xd0]
mov eax, dword [ebx + edi]
cmp dword [eax + 0x14], ebp
jge 0x56ab93
push eax
call fcn.0056ca00
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x56aca3
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 0x56acbd
mov edi, dword [esp + 0x4c]
mov dl, byte [edi + 0xc]
test dl, dl
je 0x56abfb
mov eax, dword [esp + 0x44]
movzx ecx, word [edi + 0x1c]
add eax, esi
cmp eax, ecx
jne 0x56abfb
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 0x56ab30
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 0x56ac76
mov ecx, edi
sub ecx, dword [ebp + 0x38]
lea eax, [ebx + ecx]
cmp eax, dword [edx + 0x28]
jg 0x56ac76
mov eax, dword [esp + 0x64]
push ebx
add eax, ecx
push edi
push eax
call fcn.00620e40
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.00575820
mov ebp, dword [esp + 0x34]
add esp, 0x10
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x1c], ebp
jmp 0x56ab30
push edi
lea eax, [esp + 0xd4]
push 0
push eax
call fcn.006213c0
add esp, 0xc
xor edi, edi
jmp 0x56b655
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.005bc3f0
mov edi, eax
add esp, 8
mov dword [esp + 0x98], edi
test edi, edi
jne 0x56acf0
lea ebp, [eax + 7]
jmp 0x56b655
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 0x56af7b
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 0x56b063
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.006213c0
add esp, 0xc
cmp byte [edi + 0xc], 0
jbe 0x56ae35
movzx edx, word [edi + 0x1c]
cmp dword [esp + 0x20], edx
jb 0x56af4d
test edx, edx
je 0x56ae03
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 0x56add0
mov edi, dword [esp + 0x48]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x14], esi
xor edx, edx
cmp byte [edi + 0xc], dl
jbe 0x56ae35
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 0x56ae14
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 0x56ae7e
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 0x56ae50
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 0x56af36
cmp byte [esp + 0x13], 0
jne 0x56af36
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.00620e40
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 0x56af0d
mov eax, dword [edi + 0x38]
mov ecx, dword [esi + ebx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x56af2a
cmp ecx, 4
jae 0x56af2a
mov eax, dword [esp + 0x2c]
mov byte [eax + ebp], 0
inc ebp
inc word [edx + ebx*2]
cmp word [edx + ebx*2], 4
jb 0x56af16
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 0x56af77
mov ecx, dword [esp + 0xd0]
jmp 0x56ad50
push 0x69279c
push 0x13434
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.005536b0
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x56b655
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 0x56b0ab
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 0x56aff8
cmp ecx, dword [esp + edx*4 + 0xb4]
jne 0x56aff8
dec edx
mov dword [esp + 0x14], edx
cmp byte [esp + 0x13], 0
jne 0x56b01c
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 0x56b08d
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 0x56b033
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov dword [esp + eax*4 + 0xf0], edi
jmp 0x56b091
push 0x69279c
push 0x1341c
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.005536b0
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x56b655
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 0x56afc0
mov ecx, ebx
mov dword [esp + 0x20], 0
test ebx, ebx
mov dword [esp + 0x14], ecx
mov ebx, dword [esp + 0x90]
jle 0x56b2bb
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 0x56b1c4
mov esi, dword [esp + 0x90]
lea edx, [esp + 0xf4]
add edx, edi
cmp eax, ecx
jl 0x56b115
inc eax
mov dword [esp + 0x14], eax
cmp eax, 5
jg 0x56b3ce
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 0x56b14a
push ecx
lea eax, [esp + 0x94]
push eax
call fcn.005721e0
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 0x56b192
cmp ebx, esi
jge 0x56b190
movzx eax, word [edx + ebx*2]
test ax, ax
jne 0x56b188
lea eax, [esp + 0x90]
push ebx
push eax
call fcn.005721e0
add esp, 8
movzx eax, ax
movzx ecx, ax
add ecx, 2
jmp 0x56b192
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 0x56b0f6
mov ebx, dword [esp + 0x90]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + edi + 0x104]
cmp esi, ebx
jge 0x56b273
mov ecx, dword [esp + 0x9c]
nop word [eax + eax]
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x56b208
lea eax, [esp + 0x90]
push esi
push eax
call fcn.005721e0
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 0x56b26f
inc esi
mov dword [esp + edi + 0xf0], ebp
cmp byte [esp + 0x13], 0
mov dword [esp + edi + 0x104], esi
jne 0x56b260
cmp esi, ebx
jge 0x56b25e
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x56b256
lea eax, [esp + 0x90]
push esi
push eax
call fcn.005721e0
mov ecx, dword [esp + 0xa4]
add esp, 8
mov edx, dword [esp + 0x38]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x56b260
xor eax, eax
sub dword [esp + edi + 0xf4], eax
cmp esi, ebx
jl 0x56b1e0
cmp esi, ebx
jl 0x56b283
mov eax, dword [esp + 0x28]
mov ecx, eax
mov edx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
jmp 0x56b2a6
mov edx, dword [esp + 0x20]
test edx, edx
jle 0x56b294
mov eax, dword [esp + edi + 0x100]
jmp 0x56b296
xor eax, eax
cmp esi, eax
jle 0x56b3f8
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 0x56b0d3
lea eax, [ecx - 1]
mov edx, 1
mov dword [esp + 0x28], eax
test eax, eax
jle 0x56b4b0
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 0x56b32d
push eax
lea eax, [esp + 0x94]
push eax
call fcn.005721e0
add esp, 8
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x9c]
movzx eax, word [eax + esi*2]
test ax, ax
jne 0x56b355
lea eax, [esp + 0x90]
push esi
push eax
call fcn.005721e0
add esp, 8
movzx eax, ax
movzx ebp, word [ebp]
movzx edx, ax
mov dword [esp + 0x58], edx
test edi, edi
je 0x56b39b
cmp dword [esp + 0x160], 0
jne 0x56b422
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 0x56b422
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 0x56b331
jmp 0x56b42a
push 0x69279c
push 0x13499
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.005536b0
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x56b655
push 0x69279c
push 0x134ba
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.005536b0
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x56b655
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 0x56b451
mov ecx, dword [edx + eax*4 - 4]
jmp 0x56b453
xor ecx, ecx
cmp dword [edx + eax*4], ecx
jle 0x56b486
dec eax
lea edi, [esp + 0xf0]
mov dword [esp + 0x28], eax
mov ecx, esi
test eax, eax
jg 0x56b2f2
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 0x56b4d0
push 0x69279c
push 0x134e6
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.005536b0
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x56b655
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 0x56b6ba
nop dword [eax + eax]
cmp esi, dword [esp + 0x40]
jge 0x56b584
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 0x56b51d
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x56b51d
cmp dword [edx + 0x68], 0
je 0x56b519
push ecx
call fcn.005ea580
jmp 0x56b543
xor ebp, ebp
jmp 0x56b548
mov ebp, dword [edx + 0x2c]
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x56b54c
mov eax, dword [edx + 0x9c]
push ecx
cmp eax, dword [edx + 0xa8]
jbe 0x56b53e
call fcn.0058f910
jmp 0x56b543
call fcn.00590c00
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 0x56b577
test ebp, ebp
je 0x56b62e
test ebp, ebp
jne 0x56b651
jmp 0x56b619
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.00567880
mov ebp, eax
add esp, 0x14
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x56b651
push dword [esp + 0x28]
mov edi, dword [esp + 0x30]
push edi
call fcn.00603770
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 0x56b611
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.00594190
mov ebp, dword [esp + 0x38]
add esp, 0x14
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x56b651
mov eax, dword [esp + 0x30]
mov dword [esp + 0x50], eax
inc esi
cmp esi, dword [esp + 0x14]
jge 0x56b6ba
mov edx, 1
jmp 0x56b4d0
push 0x69279c
push 0x13507
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.005536b0
add esp, 0x14
mov ebp, 0xb
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x98]
test ebx, ebx
je 0x56bdab
cmp dword [0x6d3c38], 0
je 0x56bda1
mov eax, dword [0x6ebdc0]
test eax, eax
je 0x56b684
push eax
call dword [0x6d3c88]
add esp, 4
push ebx
call dword [0x6d3c64]
sub dword [0x6ebd58], eax
dec dword [0x6ebd7c]
push ebx
call dword [0x6d3c5c]
mov eax, dword [0x6ebdc0]
add esp, 8
test eax, eax
je 0x56bdab
push eax
call dword [0x6d3c90]
jmp 0x56bda8
mov edi, dword [esp + 0x18]
xor ecx, ecx
test edi, edi
jle 0x56b6da
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 0x56b6c4
lea ebx, [edi - 1]
xor ebp, ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], ebp
test ebx, ebx
jle 0x56b7cc
mov eax, ebx
lea esi, [ebp + 1]
mov ebx, ebp
cmp esi, edi
jge 0x56b7bf
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 0x56b700
mov dword [esp + 0x2c], ebx
cmp ebx, ebp
je 0x56b7bb
mov edi, dword [esp + 0x34]
xor edx, edx
mov eax, dword [0x6d3e28]
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.005bfe90
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.005bfe90
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.005bfe90
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 0x56b6f1
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 0x56b815
mov ecx, dword [esp + 0x40]
cmp ecx, edi
je 0x56b815
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 0x56ba27
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 0x56ba23
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 0x56b8b9
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 0x56b892
mov edi, dword [esp + ebx*4 + 0xdc]
jmp 0x56b899
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 0x56b884
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 0x56b8f3
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 0x56ba16
cmp ebx, dword [esp + 0x18]
jge 0x56b917
mov eax, dword [eax + 4]
cmp eax, dword [esp + ebx*4 + 0x12c]
mov eax, dword [esp + 0x14]
jne 0x56b917
cmp ecx, dword [edi + 0x38]
jb 0x56b917
cmp ecx, dword [edi + 0x3c]
jb 0x56ba16
cmp word [esp + 0x54], 0
jne 0x56b944
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.00594190
mov ebp, dword [esp + 0x38]
add esp, 0x14
mov dword [esp + 0x1c], ebp
jmp 0x56b948
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 0x56b970
push eax
lea eax, [esp + 0x94]
push eax
call fcn.005721e0
add esp, 8
movzx ecx, ax
mov eax, dword [esp + 0x14]
cmp cx, word [eax + 0x10]
jbe 0x56ba00
test ebp, ebp
jne 0x56b651
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 0x56ba0a
mov ecx, dword [edi + 0x3c]
cmp ebp, ecx
jae 0x56b9cc
add eax, ebp
cmp eax, ecx
jbe 0x56b9cc
push 0x119c2
call fcn.005a7af0
mov ebp, eax
add esp, 4
mov dword [esp + 0x24], ebp
jmp 0x56b9f8
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.00594190
mov ebp, dword [esp + 0x38]
add esp, 0x14
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x56b651
jmp 0x56ba0e
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 0x56b861
mov edi, dword [esp + 0x18]
xor ebx, ebx
lea eax, [edi - 1]
mov dword [esp + 0x3c], ebx
test eax, eax
jle 0x56bbc8
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 0x56ba9c
mov ecx, dword [ecx + 0x38]
mov eax, dword [ebx]
mov dword [ecx + 8], eax
jmp 0x56bb46
cmp byte [esp + 0x13], 0
je 0x56bb2d
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 0x56bb1b
jb 0x56bade
cmp ecx, 0x7f
ja 0x56baf0
mov eax, 1
and cl, 0x7f
mov byte [ebp], cl
xor ebp, ebp
lea edx, [eax + 4]
jmp 0x56bb46
test edx, edx
ja 0x56bb1b
jb 0x56bafe
cmp ecx, 0x3fff
ja 0x56bb1b
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 0x56bb46
push edx
push ecx
push ebp
call fcn.00594a80
add esp, 0xc
xor ebp, ebp
lea edx, [eax + 4]
jmp 0x56bb46
sub ebx, 4
cmp eax, 4
jne 0x56bb46
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 0x56bb5f
inc eax
cmp eax, 6
jl 0x56bb50
mov ecx, dword [esp + eax*4 + 0xa0]
cmp ebx, ecx
jae 0x56bb71
lea eax, [edx + ebx]
cmp eax, ecx
ja 0x56bbb9
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.00581ab0
mov edi, dword [esp + 0x30]
mov ebp, eax
add esp, 0x18
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x56b655
inc ebx
lea eax, [edi - 1]
mov dword [esp + 0x3c], ebx
cmp ebx, eax
jge 0x56bbcc
mov ebp, dword [esp + 0x58]
jmp 0x56ba50
push 0x69279c
push 0x135cf
jmp 0x56b638
mov ebp, dword [esp + 0x1c]
mov ecx, 1
sub ecx, edi
mov dword [esp + 0x3c], ecx
cmp ecx, edi
jge 0x56bcb4
nop
mov eax, ecx
cdq
mov edi, eax
xor edi, edx
sub edi, edx
cmp byte [esp + edi + 0x140], 0
jne 0x56bca3
lea ebx, [edi*4]
test ecx, ecx
jns 0x56bc16
mov eax, dword [esp + ebx + 0x114]
cmp eax, dword [esp + ebx + 0x100]
jl 0x56bca3
test edi, edi
jne 0x56bc27
mov edx, dword [esp + 0x104]
xor eax, eax
xor ecx, ecx
jmp 0x56bc5a
cmp edi, dword [esp + 0x40]
jge 0x56bc3f
xor eax, eax
cmp byte [esp + 0x13], al
sete al
add eax, dword [esp + ebx + 0x114]
jmp 0x56bc41
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.005759d0
mov ebp, eax
add esp, 0x14
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x56b651
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 0x56bbe0
cmp dword [esp + 0x15c], 0
je 0x56bd1c
mov ebx, dword [esp + 0x4c]
cmp word [ebx + 0x18], 0
jne 0x56bd1c
mov ecx, dword [esp + 0xdc]
movzx eax, byte [ebx + 9]
cmp eax, dword [ecx + 0x14]
jg 0x56bd1c
push 0xffffffffffffffff
push ecx
call fcn.005750e0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
push ebx
push dword [esp + 0xec]
call fcn.005741d0
mov ebp, dword [esp + 0x38]
add esp, 0x14
test ebp, ebp
jne 0x56bd64
mov eax, dword [esp + 0xdc]
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.0057e260
add esp, 0xc
mov ebp, eax
jmp 0x56bd64
mov ecx, dword [esp + 0x34]
cmp byte [ecx + 0x11], 0
je 0x56bd64
cmp word [esp + 0x54], 0
jne 0x56bd64
xor esi, esi
test edi, edi
jle 0x56bd64
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.00594190
mov ecx, dword [esp + 0x48]
inc esi
add esp, 0x14
cmp esi, edi
jl 0x56bd34
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x40]
mov esi, edi
cmp edi, ebx
jge 0x56b655
mov eax, dword [esp + esi*4 + 0xd0]
test ebp, ebp
jne 0x56bd8e
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.0057e260
add esp, 0xc
mov ebp, eax
inc esi
cmp esi, ebx
jl 0x56bd72
jmp 0x56b655
lea eax, [edi + 4]
push eax
jmp 0x56aca4
push ebx
call dword [0x6d3c5c]
add esp, 4
mov ebx, dword [esp + 0x40]
xor esi, esi
test ebx, ebx
jle 0x56bdd0
mov eax, dword [esp + esi*4 + 0xd0]
test eax, eax
je 0x56bdcb
push dword [eax + 0x48]
call fcn.005bf0b0
add esp, 4
inc esi
cmp esi, ebx
jl 0x56bdb5
xor esi, esi
test edi, edi
jle 0x56bdfb
nop word [eax + eax]
mov eax, dword [esp + esi*4 + 0xdc]
test eax, eax
je 0x56bdf6
push dword [eax + 0x48]
call fcn.005bf0b0
add esp, 4
inc esi
cmp esi, edi
jl 0x56bde0
mov ecx, dword [esp + 0x148]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0061eb08
add esp, 0x13c
ret