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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x10152034]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
mov eax, ecx
mov dword [esp + 0x18], 0
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x3c], eax
mov ecx, dword [eax + 0x34]
mov dword [esp + 0x78], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x120], 0
mov byte [esp + 0x124], 0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x38], ecx
push edi
test esi, esi
jne 0x1005d7ea
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.1010a06b
mov esp, ebp
pop ebp
ret
movzx edi, word [eax + 0x16]
movzx ecx, byte [eax + 0xc]
lea esi, [ecx + edi]
cmp esi, 2
jge 0x1005d7fe
xor edx, edx
jmp 0x1005d81b
test edx, edx
je 0x1005d811
cmp edx, esi
jne 0x1005d810
mov eax, dword [ebp + 0x10]
lea edx, [eax - 2]
add edx, esi
jmp 0x1005d814
dec edx
mov eax, dword [ebp + 0x10]
mov esi, 2
sub esi, eax
lea eax, [esi + 1]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x38], eax
mov eax, edx
sub eax, ecx
lea ecx, [eax + esi]
cmp ecx, edi
jne 0x1005d843
mov eax, dword [esp + 0x40]
movzx ecx, byte [eax + 9]
mov eax, dword [eax + 0x38]
add ecx, 8
add ecx, eax
jmp 0x1005d85e
mov edx, dword [esp + 0x40]
mov eax, dword [edx + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edx + 0x18]
movzx ecx, cx
and ecx, eax
add ecx, dword [edx + 0x38]
mov edi, dword [ecx]
bswap edi
mov dword [esp + 0x64], ecx
mov dword [esp + 0x44], edi
mov dword [esp + 0x74], edi
mov edi, edi
mov eax, dword [esp + 0x3c]
cmp edi, dword [eax + 0x2c]
jbe 0x1005d8a1
push 0x1013e274
push 0xee56
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10046b30
add esp, 0x14
mov edi, 0xb
jmp 0x1005d92d
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push 0
push ecx
push edi
push eax
mov eax, dword [eax + 0xd0]
call eax
mov edi, eax
add esp, 0x10
mov dword [esp + 0x10], edi
test edi, edi
jne 0x1005d931
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 8]
mov dword [esp + esi*4 + 0x80], eax
cmp byte [eax], 0
jne 0x1005d92b
mov ecx, dword [edx + 8]
mov edi, dword [esp + 0x44]
cmp edi, dword [ecx + 4]
je 0x1005d900
mov eax, dword [edx + 4]
cmp edi, 1
mov dword [ecx + 0x38], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0x34], eax
setne al
dec al
mov dword [ecx + 0x48], edx
and al, 0x64
mov dword [ecx + 4], edi
mov byte [ecx + 9], al
mov ecx, dword [esp + esi*4 + 0x80]
call fcn.10058060
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
je 0x1005d92b
mov ecx, dword [esp + esi*4 + 0x80]
test ecx, ecx
je 0x1005d931
mov ecx, dword [ecx + 0x48]
call fcn.10052660
jmp 0x1005d931
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x28], edi
test edi, edi
jne 0x1005daa9
mov eax, dword [esp + esi*4 + 0x80]
movzx ecx, word [eax + 0x16]
movzx eax, byte [eax + 0xc]
inc eax
add eax, dword [esp + 0x20]
add ecx, eax
mov eax, esi
dec esi
mov dword [esp + 0x20], ecx
test eax, eax
je 0x1005dacc
mov edi, dword [esp + 0x40]
mov dl, byte [edi + 0xc]
test dl, dl
je 0x1005d9b6
mov eax, dword [esp + 0x6c]
movzx ecx, word [edi + 0x1a]
add eax, esi
cmp eax, ecx
jne 0x1005d9b6
mov eax, dword [edi + 0x24]
push eax
mov dword [esp + esi*4 + 0x114], eax
mov edi, dword [eax]
mov eax, dword [esp + 0x44]
bswap edi
push eax
mov dword [esp + 0x4c], edi
mov eax, dword [eax + 0x4c]
mov dword [esp + 0x7c], edi
call eax
movzx eax, ax
add esp, 8
mov dword [esp + esi*4 + 0xa0], eax
mov eax, dword [esp + 0x40]
mov byte [eax + 0xc], 0
jmp 0x1005d870
mov ecx, dword [esp + 0x6c]
movzx eax, dl
sub ecx, eax
mov eax, dword [edi + 0x40]
add ecx, esi
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x18]
movzx ecx, cx
and ecx, eax
mov eax, dword [edi + 0x38]
add eax, ecx
push eax
mov dword [esp + esi*4 + 0x114], eax
mov edi, dword [eax]
mov eax, dword [esp + 0x44]
bswap edi
push eax
mov dword [esp + 0x4c], edi
mov eax, dword [eax + 0x4c]
mov dword [esp + 0x7c], edi
call eax
movzx edx, ax
add esp, 8
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x34], edx
mov dword [esp + esi*4 + 0xa0], edx
test byte [eax + 0x16], 4
je 0x1005da63
mov eax, dword [esp + 0x40]
mov edi, dword [esp + esi*4 + 0x110]
mov ecx, edi
mov ebx, dword [esp + 0x3c]
sub ecx, dword [eax + 0x38]
lea eax, [edx + ecx]
cmp eax, dword [ebx + 0x24]
mov ebx, 0
jg 0x1005da86
mov eax, dword [esp + 0x7c]
push edx
add eax, ecx
push edi
push eax
call sub.MSVCR120.dll_memcpy
mov ecx, dword [esp + 0x4c]
add esp, 0xc
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x34]
sub eax, dword [ecx + 0x38]
add eax, edi
mov edi, dword [esp + 0x44]
mov dword [esp + esi*4 + 0x110], eax
jmp 0x1005da67
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x28]
push eax
movzx eax, byte [ecx + 0xc]
push edx
mov edx, dword [esp + 0x74]
sub edx, eax
add edx, esi
call fcn.1005c9a0
add esp, 8
jmp 0x1005d870
push 0x1013e274
push 0x10283
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10046b30
add esp, 0x14
mov edi, 0xb
lea eax, [esi*4 + 4]
push eax
lea eax, [esp + 0x84]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
xor eax, eax
xor ebx, ebx
jmp 0x1005e2e9
mov eax, dword [esp + 0x3c]
lea esi, [ecx + 3]
and esi, 0xfffffffc
mov eax, dword [eax + 0x20]
lea ecx, [esi + esi*2]
lea ecx, [eax + ecx*2]
call fcn.100445b0
mov dword [esp + 0x14], eax
mov dword [esp + 0x58], eax
test eax, eax
jne 0x1005dafa
lea edi, [eax + 7]
xor ebx, ebx
jmp 0x1005e2e9
mov ecx, dword [esp + 0x80]
lea eax, [eax + esi*4]
mov dword [esp + 0x5c], eax
lea eax, [eax + esi*2]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x54], ecx
movzx eax, byte [ecx + 8]
shl ax, 2
movzx eax, ax
mov dword [esp + 0x70], eax
movzx eax, byte [ecx + 3]
mov dword [esp + 0x60], eax
xor eax, eax
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x38], eax
jle 0x1005dd40
lea ebx, [ebx]
shl eax, 2
mov dword [esp + 0x34], eax
mov edi, dword [esp + eax + 0x80]
mov dword [esp + 0x78], edi
movzx eax, word [edi + 0x18]
mov edx, dword [edi + 0x38]
movzx esi, word [edi + 0x12]
mov dword [esp + 0x30], eax
add esi, edx
mov eax, dword [esp + 0x80]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x20], esi
mov ecx, dword [eax + 0x38]
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x1005dede
movzx eax, byte [edi + 0xc]
movzx ecx, word [edi + 0x16]
add ecx, eax
mov eax, dword [esp + 0x5c]
add ecx, ecx
push ecx
push 0
lea eax, [eax + ebx*2]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
cmp byte [edi + 0xc], 0
jbe 0x1005dc13
movzx edx, word [edi + 0x1a]
test edx, edx
jle 0x1005dbe7
mov edi, dword [esp + 0x4c]
mov ax, word [esi]
add esi, 2
mov ebx, dword [esp + 0x30]
mov ch, al
mov cl, ah
movzx eax, cx
movzx ecx, bx
mov ebx, dword [esp + 0x24]
and eax, ecx
mov ecx, dword [esp + 0x14]
add eax, edi
mov dword [ecx + ebx*4], eax
inc ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x50], ebx
dec edx
jne 0x1005dbb0
mov edi, dword [esp + 0x78]
mov dword [esp + 0x20], esi
xor edx, edx
cmp byte [edi + 0xc], dl
jbe 0x1005dc13
mov esi, dword [esp + 0x14]
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
mov dword [esp + 0x50], ebx
cmp edx, eax
jl 0x1005dbf5
mov esi, dword [esp + 0x20]
mov dword [esp + 0x24], ebx
movzx eax, word [edi + 0x12]
xor edx, edx
add eax, dword [esp + 0x4c]
movzx ecx, word [edi + 0x16]
lea eax, [eax + ecx*2]
mov ecx, eax
sub ecx, esi
inc ecx
shr ecx, 1
cmp esi, eax
cmova ecx, edx
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x1005dc77
mov edi, ecx
lea ebx, [ebx]
mov ax, word [esi]
lea esi, [esi + 2]
mov ebx, dword [esp + 0x30]
mov ch, al
mov cl, ah
inc edx
movzx eax, cx
movzx ecx, bx
mov ebx, dword [esp + 0x24]
and eax, ecx
mov ecx, dword [esp + 0x14]
add eax, dword [esp + 0x4c]
mov dword [ecx + ebx*4], eax
inc ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x50], ebx
cmp edx, edi
jb 0x1005dc40
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
dec eax
mov dword [esp + ecx + 0xfc], ebx
cmp dword [esp + 0x2c], eax
jge 0x1005dd2d
cmp dword [esp + 0x60], 0
jne 0x1005dd2d
movzx eax, word [esp + ecx + 0xa0]
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x1c]
push eax
mov word [ecx + ebx*2], ax
mov ecx, dword [esp + 0x4c]
add esi, ecx
add ecx, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x4c], ecx
push dword [esp + eax + 0x114]
push esi
call sub.MSVCR120.dll_memcpy
mov eax, dword [esp + 0x7c]
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x5c]
movzx eax, ax
add eax, esi
mov dword [ecx + ebx*4], eax
mov eax, dword [esp + 0x70]
sub word [edx + ebx*2], ax
cmp byte [edi + 8], 0
jne 0x1005dd00
mov eax, dword [edi + 0x38]
mov ecx, dword [ecx + ebx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x1005dd24
cmp word [edx + ebx*2], 4
jae 0x1005dd24
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x1c]
nop
mov byte [ecx + eax], 0
inc eax
inc word [edx + ebx*2]
cmp word [edx + ebx*2], 4
jb 0x1005dd10
mov dword [esp + 0x48], eax
inc ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x50], ebx
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x38]
jl 0x1005db40
mov eax, dword [esp + 0x70]
xor edx, edx
mov ecx, dword [esp + 0x38]
movzx esi, ax
mov eax, dword [esp + 0x3c]
add esi, 0xfffffff4
mov dword [esp + 0x34], edx
mov eax, dword [eax + 0x24]
add esi, eax
mov dword [esp + 0x48], esi
test ecx, ecx
jle 0x1005ddfc
lea esi, [esp + 0xfc]
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x48]
lea ecx, [ecx]
mov esi, dword [esp + edx*4 + 0x80]
mov edi, ecx
mov dword [esp + 0x1c], 0
movzx eax, word [esi + 0x14]
sub edi, eax
cmp byte [esi + 0xc], 0
lea eax, [esp + 0xa0]
lea eax, [eax + edx*4]
mov dword [eax], edi
mov dword [esp + 0x78], eax
jbe 0x1005dde5
lea ebx, [esi + 0x24]
push dword [ebx]
mov eax, dword [esi + 0x4c]
push esi
call eax
mov ecx, dword [esp + 0x24]
lea ebx, [ebx + 4]
movzx eax, ax
inc ecx
add eax, 2
mov dword [esp + 0x24], ecx
add edi, eax
add esp, 8
movzx eax, byte [esi + 0xc]
cmp ecx, eax
jl 0x1005ddb0
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x48]
mov dword [eax], edi
inc edx
mov dword [esp + 0x34], edx
cmp edx, dword [esp + 0x38]
jl 0x1005dd80
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x2c], 0
mov eax, ecx
mov dword [esp + 0x4c], eax
test ecx, ecx
jle 0x1005e03d
xor edx, edx
lea ecx, [esp + 0xb4]
mov edi, 1
mov dword [esp + 0x14], edx
sub ecx, 4
mov dword [esp + 0x30], edi
mov dword [esp + 0x1c], ecx
nop
cmp dword [esp + edx + 0xa0], esi
jle 0x1005df31
lea ecx, [ecx]
cmp edi, eax
jl 0x1005de66
lea eax, [edi + 1]
mov dword [esp + 0x4c], eax
cmp eax, 5
jg 0x1005e134
mov dword [esp + edx + 0xa4], 0
mov dword [esp + edx + 0xb8], ebx
mov esi, dword [esp + edx + 0xb4]
mov ecx, dword [esp + 0x5c]
lea edi, [esi - 1]
movzx eax, word [ecx + edi*2]
test ax, ax
jne 0x1005de9b
mov edx, edi
lea ecx, [esp + 0x50]
call fcn.1005cc70
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x5c]
movzx eax, ax
mov dword [esp + 0x24], ebx
movzx eax, ax
add eax, 2
sub dword [esp + edx + 0xa0], eax
cmp dword [esp + 0x60], 0
jne 0x1005df0a
cmp esi, ebx
jge 0x1005df08
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x1005ded2
mov edx, esi
lea ecx, [esp + 0x50]
call fcn.1005cc70
mov ebx, dword [esp + 0x50]
movzx eax, ax
mov dword [esp + 0x24], ebx
mov edx, dword [esp + 0x14]
movzx eax, ax
add eax, 2
jmp 0x1005df0a
push 0x1013e274
push 0x102c6
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10046b30
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x1005e2e5
xor eax, eax
add dword [esp + edx + 0xa4], eax
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov dword [esp + edx + 0xb4], edi
mov edi, dword [esp + 0x30]
cmp dword [esp + edx + 0xa0], esi
jg 0x1005de40
cmp dword [esp + edx + 0xb4], ebx
jge 0x1005dfe7
mov edi, dword [esp + 0x5c]
mov esi, dword [esp + edx + 0xb4]
movzx eax, word [edi + esi*2]
test ax, ax
jne 0x1005df6c
mov edx, esi
lea ecx, [esp + 0x50]
call fcn.1005cc70
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x5c]
movzx eax, ax
movzx ecx, ax
mov eax, dword [esp + edx + 0xa0]
add ecx, 2
add eax, ecx
cmp eax, dword [esp + 0x48]
jg 0x1005dfd7
inc esi
mov dword [esp + edx + 0xa0], eax
cmp dword [esp + 0x60], 0
mov dword [esp + edx + 0xb4], esi
jne 0x1005dfc8
cmp esi, ebx
jge 0x1005dfc6
movzx eax, word [edi + esi*2]
test ax, ax
jne 0x1005dfba
mov edx, esi
lea ecx, [esp + 0x50]
call fcn.1005cc70
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x5c]
movzx eax, ax
mov edx, dword [esp + 0x14]
movzx ecx, ax
add ecx, 2
jmp 0x1005dfc8
xor ecx, ecx
sub dword [esp + edx + 0xa4], ecx
cmp esi, ebx
jl 0x1005df42
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x48]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + edx + 0xb4]
cmp ecx, ebx
jl 0x1005dffa
mov eax, edi
mov dword [esp + 0x4c], eax
jmp 0x1005e018
cmp dword [esp + 0x2c], 0
jle 0x1005e00a
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + edx]
jmp 0x1005e00c
xor eax, eax
cmp ecx, eax
jle 0x1005e162
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x2c]
add edx, 4
inc ecx
mov dword [esp + 0x14], edx
inc edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edi
cmp ecx, eax
jl 0x1005de30
mov edx, dword [esp + 0x58]
mov dword [esp + 0x14], edx
dec eax
mov ecx, eax
mov dword [esp + 0x20], eax
test ecx, ecx
jle 0x1005e1e5
lea esp, [esp]
shl ecx, 2
mov dword [esp + 0x30], ecx
mov eax, dword [esp + ecx + 0x9c]
mov edi, dword [esp + ecx + 0xa0]
mov dword [esp + 0x24], eax
lea eax, [esp + 0xb4]
sub eax, 4
mov dword [esp + 0x2c], eax
mov esi, dword [ecx + eax]
mov eax, dword [esp + 0x5c]
dec esi
mov edx, esi
sub edx, dword [esp + 0x60]
inc edx
lea ebx, [edx + edx]
cmp word [ebx + eax], 0
jne 0x1005e0a0
lea ecx, [esp + 0x50]
call fcn.1005cc70
lea esp, [esp]
mov edx, dword [esp + 0x5c]
cmp word [edx + esi*2], 0
jne 0x1005e0ba
mov edx, esi
lea ecx, [esp + 0x50]
call fcn.1005cc70
mov edx, dword [esp + 0x5c]
test edi, edi
je 0x1005e0ff
cmp dword [ebp + 0x10], 0
jne 0x1005e190
mov ecx, dword [esp + 0x4c]
mov eax, 2
mov edx, dword [esp + 0x5c]
dec ecx
cmp dword [esp + 0x20], ecx
mov ecx, 0
cmove eax, ecx
mov ecx, dword [esp + 0x24]
sub ecx, eax
movzx eax, word [edx + esi*2]
sub ecx, eax
movzx eax, word [ebx + edx]
add eax, 2
add eax, edi
cmp eax, ecx
jg 0x1005e190
movzx eax, word [ebx + edx]
mov ecx, 0xfffffffe
add eax, 2
sub ebx, 2
add edi, eax
movzx eax, word [edx + esi*2]
mov edx, dword [esp + 0x30]
sub ecx, eax
mov eax, dword [esp + 0x24]
add eax, ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
mov dword [edx + ecx], esi
dec esi
jns 0x1005e0a0
jmp 0x1005e198
push 0x1013e274
push 0x10333
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10046b30
mov eax, dword [esp + 0x6c]
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x1005e2e9
push 0x1013e274
push 0x10354
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10046b30
mov eax, dword [esp + 0x6c]
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x1005e2e9
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [esp + edx + 0xa0], edi
mov dword [esp + edx + 0x9c], eax
cmp ecx, 1
jle 0x1005e1b9
mov eax, dword [esp + 0x2c]
mov eax, dword [edx + eax - 4]
jmp 0x1005e1bb
xor eax, eax
mov esi, dword [esp + 0x2c]
cmp dword [edx + esi], eax
jle 0x1005e263
dec ecx
mov dword [esp + 0x20], ecx
test ecx, ecx
jg 0x1005e050
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x80]
xor edi, edi
mov eax, dword [eax + 0x38]
movzx eax, byte [eax]
mov dword [esp + 0x34], eax
lea eax, [edi + 1]
cmp dword [esp + 0x4c], edi
jle 0x1005e3f0
cmp edi, dword [esp + 0x38]
jge 0x1005e351
mov eax, dword [esp + edi*4 + 0x80]
mov dword [esp + edi*4 + 0x8c], eax
mov dword [esp + edi*4 + 0x80], 0
mov dword [esp + 0x1c], eax
mov esi, dword [eax + 0x48]
test byte [esi + 0x18], 4
mov ecx, dword [esi + 0x10]
je 0x1005e2a0
mov eax, dword [ecx + 0x1c]
cmp eax, dword [esi + 0x14]
jb 0x1005e2a0
cmp dword [ecx + 0x68], 0
je 0x1005e29c
mov ecx, esi
call fcn.1004e730
test eax, eax
je 0x1005e28e
mov ecx, esi
call fcn.10051600
mov dword [esp + 0x10], eax
mov edx, eax
jmp 0x1005e2cd
push 0x1013e274
push 0x1037e
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10046b30
mov eax, dword [esp + 0x6c]
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x1005e2e9
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0x10]
jmp 0x1005e2cd
xor edx, edx
jmp 0x1005e2c9
mov edx, dword [ecx + 0x2c]
mov dword [esp + 0x10], edx
test edx, edx
jne 0x1005e2cd
mov eax, dword [ecx + 0x9c]
cmp eax, dword [ecx + 0xa0]
mov ecx, esi
jbe 0x1005e2c2
call fcn.10052ae0
jmp 0x1005e2c7
call fcn.10052a00
mov edx, eax
mov dword [esp + 0x10], edx
inc dword [esp + 0x18]
mov dword [esp + 0x28], edx
test edx, edx
je 0x1005e3e0
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, eax
call fcn.100446e0
mov eax, dword [esp + 0x38]
xor esi, esi
test eax, eax
jle 0x1005e31c
lea ebx, [ebx]
mov ecx, dword [esp + esi*4 + 0x80]
test ecx, ecx
je 0x1005e317
mov ecx, dword [ecx + 0x48]
call fcn.10052660
mov eax, dword [esp + 0x38]
inc esi
cmp esi, eax
jl 0x1005e300
xor esi, esi
test ebx, ebx
jle 0x1005e33a
mov ecx, dword [esp + esi*4 + 0x8c]
test ecx, ecx
je 0x1005e335
mov ecx, dword [ecx + 0x48]
call fcn.10052660
inc esi
cmp esi, ebx
jl 0x1005e322
mov ecx, dword [esp + 0x12c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1010a06b
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], 0
lea edx, [esp + 0x1c]
mov ecx, dword [esp + 0x44]
cmovne ecx, eax
lea eax, [esp + 0x74]
push 0
push ecx
mov ecx, dword [esp + 0x44]
push eax
call fcn.1005bc90
add esp, 0xc
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], eax
test eax, eax
jne 0x1005e2dd
mov esi, dword [esp + 0x1c]
mov ecx, esi
mov edx, dword [esp + 0x34]
call fcn.10058380
mov ecx, dword [esp + 0x3c]
inc dword [esp + 0x18]
mov dword [esp + edi*4 + 0x8c], esi
mov dword [esp + edi*4 + 0xfc], ebx
cmp byte [ecx + 0x11], 0
je 0x1005e3d8
mov edx, dword [esi + 4]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x44]
push dword [eax + 4]
push 5
call fcn.10057130
mov eax, dword [esp + 0x34]
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1005e2dd
mov eax, dword [esp + 0x74]
mov dword [esp + 0x44], eax
inc edi
mov eax, 1
cmp edi, dword [esp + 0x4c]
jl 0x1005e205
mov edi, dword [esp + 0x18]
xor ecx, ecx
test edi, edi
jle 0x1005e447
lea ebx, [ebx]
mov eax, dword [esp + ecx*4 + 0x8c]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x48]
mov dword [esp + ecx*4 + 0xe0], edx
mov dword [esp + ecx*4 + 0xc8], edx
mov ax, word [eax + 0x18]
mov word [esp + ecx*2 + 0x110], ax
xor eax, eax
test ecx, ecx
jle 0x1005e442
lea ecx, [ecx]
cmp dword [esp + eax*4 + 0xe0], edx
je 0x1005e5d5
inc eax
cmp eax, ecx
jl 0x1005e430
inc ecx
cmp ecx, edi
jl 0x1005e400
xor esi, esi
mov dword [esp + 0x1c], esi
test edi, edi
jle 0x1005e50f
mov ebx, dword [esp + 0x18]
xor edi, edi
lea ecx, [edi + 1]
cmp ebx, ecx
jle 0x1005e494
xor esi, esi
jmp 0x1005e470
lea edx, [ecx*4]
mov eax, dword [esp + edx + 0xc8]
cmp eax, dword [esp + esi + 0xc8]
jae 0x1005e48b
mov edi, ecx
mov esi, edx
inc ecx
cmp ecx, ebx
jl 0x1005e470
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + edi*4 + 0xc8]
mov dword [esp + 0x1c], eax
mov dword [esp + edi*4 + 0xc8], 0xffffffff
cmp edi, esi
je 0x1005e4fa
jle 0x1005e4cf
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + 0x2c]
mov eax, dword [esp + edi*4 + 0x8c]
inc edx
add edx, edi
mov ecx, dword [eax + 0x48]
xor eax, eax
mov word [ecx + 0x18], ax
call fcn.1004cfa0
mov eax, dword [esp + esi*4 + 0x8c]
mov ecx, dword [eax + 0x48]
mov ax, word [esp + edi*2 + 0x110]
mov edi, dword [esp + 0x1c]
mov edx, edi
mov word [ecx + 0x18], ax
call fcn.1004cfa0
mov eax, dword [esp + esi*4 + 0x8c]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x18]
inc esi
mov dword [esp + 0x1c], esi
cmp esi, edi
jl 0x1005e455
mov ebx, dword [esp + 0x24]
test byte [esp + 0x34], 8
mov eax, dword [esp + edi*4 + 0x88]
mov ecx, dword [esp + 0x64]
mov eax, dword [eax + 4]
bswap eax
mov dword [ecx], eax
jne 0x1005e55a
mov ecx, dword [esp + 0x38]
cmp ecx, edi
je 0x1005e55a
cmp edi, ecx
lea edx, [esp + 0x80]
lea eax, [esp + 0x8c]
cmovle eax, edx
mov eax, dword [eax + ecx*4 - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [esp + edi*4 + 0x88]
mov ecx, dword [eax + 0x38]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov edx, dword [esp + 0x3c]
cmp byte [edx + 0x11], 0
je 0x1005e75b
mov esi, dword [esp + 0x8c]
xor edi, edi
mov dword [esp + 0x64], 0
mov eax, dword [esi + 0x38]
movzx ecx, word [esi + 0x16]
mov dword [esp + 0x1c], eax
movzx eax, byte [esi + 0xc]
add ecx, eax
mov eax, dword [edx + 0x24]
mov dword [esp + 0x20], ecx
xor ecx, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], ecx
test ebx, ebx
jle 0x1005e762
xor eax, eax
mov dword [esp + 0x44], eax
lea esp, [esp]
mov edx, dword [esp + 0x14]
mov edx, dword [edx + edi*4]
mov dword [esp + 0x30], edx
cmp edi, dword [esp + 0x20]
jne 0x1005e634
inc ecx
mov dword [esp + 0x2c], ecx
cmp ecx, dword [esp + 0x18]
jge 0x1005e5fd
mov edx, dword [esp + ecx*4 + 0x8c]
jmp 0x1005e604
push 0x1013e274
push 0x103c8
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10046b30
add esp, 0x14
mov edi, 0xb
jmp 0x1005e2e1
mov edx, dword [esp + ecx*4 + 0x80]
movzx eax, byte [edx + 0xc]
movzx ecx, word [edx + 0x16]
add ecx, eax
xor eax, eax
cmp dword [esp + 0x60], eax
sete al
add eax, dword [esp + 0x20]
add eax, ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0x38]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x44]
cmp edi, dword [esp + eax + 0xb4]
jne 0x1005e65f
mov eax, dword [esp + 0x64]
inc eax
mov dword [esp + 0x64], eax
shl eax, 2
cmp dword [esp + 0x60], 0
mov dword [esp + 0x44], eax
mov esi, dword [esp + eax + 0x8c]
je 0x1005e74e
cmp ecx, dword [esp + 0x18]
jge 0x1005e685
mov eax, dword [esi + 4]
cmp eax, dword [esp + ecx*4 + 0xe0]
jne 0x1005e685
mov eax, dword [esp + 0x1c]
cmp edx, eax
jb 0x1005e685
add eax, dword [esp + 0x34]
cmp edx, eax
jb 0x1005e74a
cmp word [esp + 0x70], 0
jne 0x1005e6af
mov edx, dword [edx]
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x3c]
push eax
push dword [esi + 4]
bswap edx
push 5
call fcn.10057130
mov eax, dword [esp + 0x34]
add esp, 0xc
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x5c]
movzx eax, word [eax + edi*2]
test ax, ax
jne 0x1005e6d6
mov edx, edi
lea ecx, [esp + 0x50]
call fcn.1005cc70
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x50]
movzx eax, ax
cmp ax, word [esi + 0x10]
jbe 0x1005e73e
cmp dword [esp + 0x10], 0
jne 0x1005e2dd
lea eax, [esp + 0xc8]
push eax
push dword [esp + 0x34]
mov eax, dword [esi + 0x50]
push esi
call eax
movzx eax, word [esp + 0xe4]
add esp, 0xc
cmp eax, dword [esp + 0xd4]
jae 0x1005e74a
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x28]
mov ecx, dword [esi + 0x34]
push eax
movzx eax, word [esp + 0xde]
push dword [esi + 4]
push 3
mov edx, dword [eax + edx - 4]
bswap edx
call fcn.10057130
mov eax, dword [esp + 0x34]
add esp, 0xc
mov dword [esp + 0x10], eax
jmp 0x1005e742
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x1005e2dd
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x2c]
inc edi
cmp edi, ebx
jl 0x1005e5b0
mov esi, dword [esp + 0x8c]
mov ecx, dword [esp + 0x18]
xor edi, edi
lea eax, [ecx - 1]
test eax, eax
jle 0x1005e8ed
jmp 0x1005e780
mov eax, dword [esp + edi*4 + 0xb4]
mov edx, dword [esp + 0x14]
mov esi, dword [edx + eax*4]
lea edx, [edx + eax*4]
mov ecx, dword [esp + edi*4 + 0x8c]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x70]
movzx eax, word [edx + eax*2]
movzx edx, ax
mov dword [esp + 0x34], eax
movzx eax, cx
mov ecx, dword [esp + 0x64]
add edx, eax
mov eax, dword [esp + 0x7c]
add eax, dword [esp + 0x68]
mov dword [esp + 0x20], eax
cmp byte [ecx + 8], 0
jne 0x1005e7db
mov ecx, dword [ecx + 0x38]
mov eax, dword [esi]
mov dword [ecx + 8], eax
jmp 0x1005e89c
cmp dword [esp + 0x60], 0
je 0x1005e880
lea eax, [esp + 0xe0]
push eax
mov eax, dword [esp + 0x20]
push dword [eax - 4]
mov eax, dword [ecx + 0x50]
push ecx
call eax
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov edx, dword [esp + 0xe4]
mov esi, eax
mov ecx, dword [esp + 0xe0]
add eax, 4
mov dword [esp + 0x114], edx
mov dword [esp + 0x1c], eax
test edx, edx
ja 0x1005e86d
jb 0x1005e82b
cmp ecx, 0x7f
ja 0x1005e83c
and cl, 0x7f
mov byte [eax], cl
mov eax, 1
lea edx, [eax + 4]
xor eax, eax
jmp 0x1005e8a0
test edx, edx
ja 0x1005e86d
jb 0x1005e84a
cmp ecx, 0x3fff
ja 0x1005e86d
mov eax, ecx
and cl, 0x7f
shrd eax, edx, 7
shr edx, 7
or al, 0x80
mov edx, dword [esp + 0x1c]
mov byte [edx], al
mov eax, 2
mov byte [edx + 1], cl
lea edx, [eax + 4]
xor eax, eax
jmp 0x1005e8a0
push edx
push ecx
mov ecx, eax
call fcn.10048440
add esp, 8
lea edx, [eax + 4]
xor eax, eax
jmp 0x1005e8a0
sub esi, 4
cmp word [esp + 0x34], 4
jne 0x1005e8a0
mov eax, dword [esp + 0x40]
push esi
push eax
mov eax, dword [eax + 0x4c]
call eax
add esp, 8
movzx edx, ax
mov eax, dword [esp + 0x20]
add dword [esp + 0x68], edx
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x68]
push dword [ecx + 4]
mov ecx, dword [esp + 0x48]
push eax
push edx
mov edx, dword [esp + 0x7c]
push esi
lea edx, [edx + edi]
call fcn.1005cad0
mov eax, dword [esp + 0x3c]
add esp, 0x14
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1005e2dd
mov ecx, dword [esp + 0x18]
inc edi
lea eax, [ecx - 1]
cmp edi, eax
jl 0x1005e780
mov esi, dword [esp + 0x8c]
mov eax, 1
sub eax, ecx
mov dword [esp + 0x68], eax
cmp eax, ecx
jge 0x1005e9e4
cdq
lea edi, [esp + 0x124]
mov ecx, eax
xor ecx, edx
sub ecx, edx
add edi, ecx
cmp byte [edi], 0
jne 0x1005e9c2
cmp dword [esp + 0x68], 0
jge 0x1005e934
mov eax, dword [esp + ecx*4 + 0xf8]
cmp eax, dword [esp + ecx*4 + 0xb0]
jl 0x1005e9c2
test ecx, ecx
jne 0x1005e945
mov edx, dword [esp + 0xb4]
xor ebx, ebx
xor eax, eax
jmp 0x1005e974
cmp ecx, dword [esp + 0x38]
jge 0x1005e95b
xor ebx, ebx
cmp dword [esp + 0x60], ebx
sete bl
add ebx, dword [esp + ecx*4 + 0xf8]
mov edx, dword [esp + ecx*4 + 0xb4]
xor eax, eax
cmp dword [esp + 0x60], eax
sete al
add eax, dword [esp + ecx*4 + 0xb0]
sub edx, eax
lea esi, [ecx*4]
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + esi + 0x90]
push edx
push eax
mov edx, ebx
call fcn.1005d2b0
add esp, 0xc
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], eax
test eax, eax
jne 0x1005ea4a
mov eax, dword [esp + esi + 0x8c]
mov cx, word [esp + 0x48]
sub cx, word [esp + esi + 0xa0]
mov ebx, dword [esp + 0x50]
mov byte [edi], 1
mov word [eax + 0x14], cx
mov eax, dword [esp + 0x68]
inc eax
mov dword [esp + 0x68], eax
cmp eax, dword [esp + 0x18]
jl 0x1005e900
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x14], eax
cmp dword [ebp + 0xc], 0
je 0x1005ea5b
mov ebx, dword [esp + 0x40]
cmp word [ebx + 0x16], 0
jne 0x1005ea5b
movzx eax, byte [ebx + 9]
cmp ax, word [esi + 0x14]
ja 0x1005ea5b
or edx, 0xffffffff
mov ecx, esi
call fcn.100576b0
mov ecx, dword [esp + 0x8c]
mov edx, ebx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
call fcn.1005d690
mov edi, dword [esp + 0x2c]
add esp, 4
test edi, edi
jne 0x1005eaba
mov ecx, dword [esp + 0x8c]
mov edx, ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x34]
call fcn.1005c2b0
add esp, 4
mov edi, eax
jmp 0x1005eaba
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
jmp 0x1005e2e9
mov ecx, dword [esp + 0x3c]
cmp byte [ecx + 0x11], 0
je 0x1005eab6
cmp word [esp + 0x70], 0
mov ebx, dword [esp + 0x18]
jne 0x1005eab0
xor esi, esi
test ebx, ebx
jle 0x1005eab0
jmp 0x1005ea80
mov eax, dword [esp + esi*4 + 0x8c]
lea edx, [esp + 0x28]
push edx
push dword [eax + 4]
mov eax, dword [eax + 0x38]
push 5
mov edx, dword [eax + 8]
bswap edx
call fcn.10057130
mov ecx, dword [esp + 0x48]
inc esi
add esp, 0xc
cmp esi, ebx
jl 0x1005ea80
mov edi, dword [esp + 0x28]
jmp 0x1005eabe
mov edi, dword [esp + 0x10]
jmp 0x1005eabe
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
mov esi, ebx
cmp ebx, eax
jge 0x1005e2e5
lea esp, [esp]
mov ecx, dword [esp + esi*4 + 0x80]
test edi, edi
jne 0x1005eaf1
push dword [ecx + 4]
mov edx, ecx
mov ecx, dword [ecx + 0x34]
call fcn.1005c2b0
mov edi, eax
add esp, 4
mov eax, dword [esp + 0x38]
inc esi
cmp esi, eax
jl 0x1005ead0
jmp 0x1005e2e5