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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x74]
push edi
xor edi, edi
mov dword [esp + 0x50], edx
push 0x40
mov ebx, ecx
mov dword [esp + 0x64], esi
push edi
push eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x40], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x140], edi
mov byte [esp + 0x144], 0
call fcn.1013ad10
mov eax, dword [ebx + 0x34]
add esp, 0xc
mov dword [esp + 0x3c], eax
test esi, esi
jne 0x10048252
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.1013942d
mov esp, ebp
pop ebp
ret
movzx edx, word [ebx + 0x18]
movzx ecx, byte [ebx + 0xc]
lea esi, [ecx + edx]
cmp esi, 2
jae 0x10048268
mov dword [esp + 0x40], edi
jmp 0x10048297
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x10048276
mov dword [esp + 0x40], edi
jmp 0x1004828d
cmp eax, esi
jne 0x10048288
mov eax, dword [ebp + 0x10]
add esi, 0xfffffffe
add esi, eax
mov dword [esp + 0x40], esi
jmp 0x10048290
dec eax
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x10]
mov esi, 2
sub esi, eax
lea eax, [esi + 1]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x40]
sub eax, ecx
lea ecx, [eax + esi]
cmp ecx, edx
jne 0x100482b4
movzx ecx, byte [ebx + 9]
add ecx, 8
jmp 0x100482c8
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 + 0x54], ecx
mov edx, dword [ecx]
bswap edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x24], edx
nop dword [eax + eax]
lea ebx, [esi*4]
test edi, edi
jne 0x100494e8
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0xbc]
add eax, ebx
push edi
push eax
call fcn.10041bb0
mov edi, eax
add esp, 8
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edi
test edi, edi
jne 0x100494e8
lea eax, [esp + 0xbc]
add eax, ebx
mov dword [esp + 0x2c], eax
mov ecx, dword [eax]
cmp dword [ecx + 0x14], edi
jge 0x10048347
call fcn.10041700
mov edi, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edi
test edi, edi
jne 0x10048464
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov ecx, dword [esp + 0x34]
add ecx, 4
movzx eax, word [eax + 0x18]
add ecx, eax
mov eax, esi
dec esi
mov dword [esp + 0x34], ecx
test eax, eax
je 0x1004847e
mov ebx, dword [esp + 0x44]
mov dl, byte [ebx + 0xc]
test dl, dl
je 0x100483b2
mov eax, dword [esp + 0x40]
movzx ecx, word [ebx + 0x1c]
add eax, esi
cmp eax, ecx
jne 0x100483b2
mov eax, dword [ebx + 0x24]
push eax
mov dword [esp + esi*4 + 0x74], eax
push ebx
mov ecx, dword [eax]
mov eax, dword [ebx + 0x4c]
bswap ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x2c], ecx
call eax
mov edx, dword [esp + 0x60]
add esp, 8
movzx eax, ax
mov dword [esp + esi*4 + 0xdc], eax
mov byte [ebx + 0xc], 0
jmp 0x100482e0
mov ecx, dword [esp + 0x40]
movzx eax, dl
sub ecx, eax
mov eax, dword [ebx + 0x40]
add ecx, esi
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x1a]
movzx edi, cx
and edi, eax
add edi, dword [ebx + 0x38]
push edi
push ebx
mov dword [esp + esi*4 + 0x78], edi
mov eax, dword [edi]
bswap eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x4c]
call eax
mov edx, dword [esp + 0x44]
add esp, 8
movzx ebx, ax
mov dword [esp + esi*4 + 0xdc], ebx
test byte [edx + 0x18], 0xc
je 0x10048433
mov eax, dword [esp + 0x44]
mov ecx, edi
sub ecx, dword [eax + 0x38]
lea eax, [ebx + ecx]
cmp eax, dword [edx + 0x28]
jg 0x10048433
mov eax, dword [esp + 0x60]
push ebx
add eax, ecx
push edi
push eax
call fcn.1013c1a0
mov eax, dword [esp + 0x50]
add esp, 0xc
sub edi, dword [eax + 0x38]
add edi, dword [esp + 0x60]
mov dword [esp + esi*4 + 0x70], edi
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x18]
push eax
push ebx
mov ebx, dword [esp + 0x4c]
mov ecx, ebx
movzx eax, byte [ebx + 0xc]
sub edx, eax
add edx, esi
call fcn.10047020
mov edi, dword [esp + 0x20]
add esp, 8
mov edx, dword [esp + 0x58]
mov dword [esp + 0x20], edi
jmp 0x100482e0
push ebx
lea eax, [esp + 0xc0]
push 0
push eax
call fcn.1013ad10
add esp, 0xc
xor ebx, ebx
jmp 0x100494f9
mov eax, dword [esp + 0x3c]
lea esi, [ecx + 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.10027b10
mov ebx, eax
add esp, 8
mov dword [esp + 0x80], ebx
test ebx, ebx
jne 0x100484b1
lea edi, [eax + 7]
jmp 0x100494f9
mov ecx, dword [esp + 0xbc]
lea eax, [ebx + esi*4]
mov ebx, dword [esp + 0x38]
xor edx, edx
mov dword [esp + 0x84], 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 + 0x5c], eax
mov al, byte [ecx + 2]
mov byte [esp + 0xf], al
movzx eax, al
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x1c], edx
test ebx, ebx
jle 0x10048732
mov ebx, dword [esp + 0x78]
mov edi, dword [esp + edx*4 + 0xbc]
mov ecx, dword [ecx + 0x38]
mov dword [esp + 0x28], edi
movzx eax, word [edi + 0x18]
mov edx, dword [edi + 0x38]
mov dword [esp + 0x34], eax
movzx eax, word [edi + 0x1a]
mov esi, eax
mov dword [esp + 0x68], eax
mov al, byte [edx]
mov dword [esp + 0x64], esi
movzx esi, word [edi + 0x12]
add esi, edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x30], esi
cmp al, byte [ecx]
jne 0x10048828
movzx eax, byte [edi + 0xc]
add eax, dword [esp + 0x34]
add eax, eax
push eax
mov eax, dword [esp + 0x88]
push 0
lea eax, [eax + ebx*2]
push eax
call fcn.1013ad10
add esp, 0xc
cmp byte [edi + 0xc], 0
jbe 0x100485df
movzx edx, word [edi + 0x1c]
cmp dword [esp + 0x34], edx
jb 0x10048704
test edx, edx
je 0x100485b4
mov edi, dword [esp + 0x48]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
mov eax, dword [esp + 0x64]
movzx ecx, cx
movzx eax, ax
and ecx, eax
mov eax, dword [esp + 0x80]
add ecx, edi
mov dword [eax + ebx*4], ecx
inc ebx
sub edx, 1
jne 0x10048580
mov edi, dword [esp + 0x28]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x30], esi
xor edx, edx
cmp byte [edi + 0xc], dl
jbe 0x100485df
mov esi, dword [esp + 0x80]
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 0x100485c5
mov esi, dword [esp + 0x30]
mov dword [esp + 0x78], ebx
movzx eax, word [edi + 0x12]
mov edx, dword [esp + 0x48]
add eax, edx
movzx ecx, word [edi + 0x18]
lea eax, [eax + ecx*2]
mov dword [esp + 0x64], eax
cmp esi, eax
jae 0x1004862f
mov edi, eax
nop word [eax + eax]
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
mov eax, dword [esp + 0x68]
movzx ecx, cx
movzx eax, ax
and ecx, eax
mov eax, dword [esp + 0x80]
add ecx, edx
mov dword [eax + ebx*4], ecx
inc ebx
cmp esi, edi
jb 0x10048600
mov edi, dword [esp + 0x28]
mov dword [esp + 0x78], ebx
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x38]
dec eax
mov dword [esp + edx*4 + 0x104], ebx
cmp edx, eax
jge 0x100486ed
cmp byte [esp + 0xf], 0
jne 0x100486ed
movzx eax, word [esp + edx*4 + 0xdc]
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x2c]
push eax
push dword [esp + edx*4 + 0x74]
mov word [ecx + ebx*2], ax
mov ecx, dword [esp + 0x18]
add esi, ecx
add ecx, eax
push esi
mov dword [esp + 0x1c], ecx
call fcn.1013c1a0
mov ecx, dword [esp + 0x68]
add esp, 0xc
mov edx, dword [esp + 0x84]
movzx eax, cx
add eax, esi
mov esi, dword [esp + 0x80]
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 0x100486be
mov eax, dword [edi + 0x38]
mov ecx, dword [esi + ebx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x100486e4
cmp ecx, 4
jae 0x100486e4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
nop dword [eax + eax]
mov byte [ecx + eax], 0
inc eax
inc word [edx + ebx*2]
cmp word [edx + ebx*2], 4
jb 0x100486d0
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x1c]
inc ebx
mov dword [esp + 0x78], ebx
inc edx
mov dword [esp + 0x1c], edx
cmp edx, dword [esp + 0x38]
jge 0x1004872e
mov ecx, dword [esp + 0xbc]
jmp 0x10048500
push 0x10167d54
push 0x130fa
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1002a9f0
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x100494f9
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x5c]
xor edx, edx
movzx esi, ax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], edx
mov eax, dword [eax + 0x28]
add eax, 0xfffffff4
add esi, eax
xor eax, eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x1c], eax
test ebx, ebx
jle 0x10048870
mov ecx, ebx
lea esi, [esp + 0x104]
lea edi, [esp + 0xf0]
rep movsd dword es:[edi], dword [esi]
nop
lea ebx, [eax*4]
mov esi, dword [esp + ebx + 0xbc]
mov ecx, dword [esp + ebx + 0x104]
mov eax, dword [esi + 0x3c]
mov dword [esp + edx*4 + 0x88], eax
mov dword [esp + edx*4 + 0xa0], ecx
test edx, edx
je 0x100487a8
cmp ecx, dword [esp + edx*4 + 0x9c]
jne 0x100487a8
dec edx
mov dword [esp + 0x10], edx
cmp byte [esp + 0xf], 0
jne 0x100487cc
mov eax, dword [esp + 0x44]
inc edx
mov dword [esp + 0x10], edx
mov eax, dword [eax + 0x3c]
mov dword [esp + edx*4 + 0x88], eax
lea eax, [ecx + 1]
mov dword [esp + edx*4 + 0xa0], eax
mov edi, dword [esp + 0x48]
sub edi, dword [esi + 0x14]
cmp byte [esi + 0xc], 0
mov dword [esp + ebx + 0xdc], edi
mov dword [esp + 0x2c], 0
jbe 0x10048852
lea ebx, [esi + 0x24]
nop dword [eax + eax]
push dword [ebx]
mov eax, dword [esi + 0x4c]
push esi
call eax
mov ecx, dword [esp + 0x34]
lea ebx, [ebx + 4]
movzx eax, ax
inc ecx
add eax, 2
mov dword [esp + 0x34], ecx
add edi, eax
add esp, 8
movzx eax, byte [esi + 0xc]
cmp ecx, eax
jl 0x100487f0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov dword [esp + eax*4 + 0xdc], edi
jmp 0x10048856
push 0x10167d54
push 0x130e2
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1002a9f0
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x100494f9
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x38]
inc eax
inc edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edx
cmp eax, ebx
jl 0x10048770
mov esi, dword [esp + 0x48]
mov ecx, ebx
mov dword [esp + 0x30], 0
test ebx, ebx
mov dword [esp + 0x28], ecx
mov ebx, dword [esp + 0x78]
jle 0x10048ac9
mov eax, 1
xor edi, edi
mov dword [esp + 0x1c], eax
nop word [eax + eax]
mov edx, dword [esp + edi + 0xdc]
mov dword [esp + 0x10], edx
cmp edx, esi
jle 0x10048988
mov esi, dword [esp + 0x78]
lea ecx, [esp + 0xe0]
add ecx, edi
cmp eax, dword [esp + 0x28]
jl 0x100488e1
inc eax
mov dword [esp + 0x28], eax
cmp eax, 5
jg 0x10048a75
mov dword [ecx], 0
mov dword [esp + edi + 0xf4], esi
mov ebx, dword [esp + edi + 0xf0]
mov eax, dword [esp + 0x84]
lea edx, [ebx - 1]
movzx eax, word [eax + edx*2]
test ax, ax
jne 0x10048907
lea ecx, [esp + 0x78]
call fcn.100476e0
movzx eax, ax
mov edx, dword [esp + edi + 0xdc]
movzx ecx, ax
add ecx, 2
sub edx, ecx
cmp byte [esp + 0xf], 0
mov dword [esp + 0x10], edx
mov dword [esp + edi + 0xdc], edx
jne 0x10048958
cmp ebx, esi
jge 0x10048956
mov eax, dword [esp + 0x84]
movzx eax, word [eax + ebx*2]
test ax, ax
jne 0x1004894e
mov edx, ebx
lea ecx, [esp + 0x78]
call fcn.100476e0
mov edx, dword [esp + 0x10]
movzx eax, ax
movzx ecx, ax
add ecx, 2
jmp 0x10048958
xor ecx, ecx
mov eax, dword [esp + edi + 0xe0]
add eax, ecx
lea ecx, [esp + 0xe0]
add ecx, edi
mov dword [ecx], eax
lea eax, [ebx - 1]
mov dword [esp + edi + 0xf0], eax
mov eax, dword [esp + 0x1c]
cmp edx, dword [esp + 0x48]
jg 0x100488c0
mov ebx, dword [esp + 0x78]
mov esi, dword [esp + edi + 0xf0]
cmp esi, ebx
jge 0x10048a2d
mov ecx, dword [esp + 0x84]
nop
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x100489c2
mov edx, esi
lea ecx, [esp + 0x78]
call fcn.100476e0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x84]
movzx eax, ax
movzx eax, ax
add eax, 2
add edx, eax
mov dword [esp + 0x10], edx
cmp edx, dword [esp + 0x48]
jg 0x10048a29
inc esi
mov dword [esp + edi + 0xdc], edx
cmp byte [esp + 0xf], 0
mov dword [esp + edi + 0xf0], esi
jne 0x10048a1a
cmp esi, ebx
jge 0x10048a18
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x10048a10
mov edx, esi
lea ecx, [esp + 0x78]
call fcn.100476e0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x84]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x10048a1a
xor eax, eax
sub dword [esp + edi + 0xe0], eax
cmp esi, ebx
jl 0x100489a0
cmp esi, ebx
jl 0x10048a39
mov eax, dword [esp + 0x1c]
mov ecx, eax
mov dword [esp + 0x28], ecx
jmp 0x10048a57
cmp dword [esp + 0x30], 0
jle 0x10048a49
mov eax, dword [esp + edi + 0xec]
jmp 0x10048a4b
xor eax, eax
cmp esi, eax
jle 0x10048a9f
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
inc eax
inc esi
mov dword [esp + 0x1c], eax
add edi, 4
mov dword [esp + 0x30], esi
cmp esi, ecx
jge 0x10048ac9
mov esi, dword [esp + 0x48]
jmp 0x100488a0
push 0x10167d54
push 0x1315f
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1002a9f0
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x100494f9
push 0x10167d54
push 0x13180
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1002a9f0
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x100494f9
lea eax, [ecx - 1]
mov edx, 1
mov dword [esp + 0x34], eax
test eax, eax
jle 0x10048c5f
lea ecx, [esp + 0xdc]
sub ecx, 4
lea edx, [esp + 0xf0]
sub edx, 4
mov dword [esp + 0x18], ecx
lea edi, [esp + 0xdc]
mov dword [esp + 0x1c], edx
mov esi, dword [edx + eax*4]
mov ecx, dword [ecx + eax*4]
dec esi
mov edi, dword [edi + eax*4]
mov edx, esi
sub edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x84]
inc edx
cmp word [eax + edx*2], 0
mov dword [esp + 0x10], ecx
lea eax, [eax + edx*2]
mov dword [esp + 0x30], eax
jne 0x10048b33
lea ecx, [esp + 0x78]
call fcn.100476e0
mov ebx, dword [esp + 0x34]
nop word [eax + eax]
mov eax, dword [esp + 0x84]
movzx eax, word [eax + esi*2]
test ax, ax
jne 0x10048b5e
mov edx, esi
lea ecx, [esp + 0x78]
call fcn.100476e0
movzx eax, ax
movzx edx, ax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x68], edx
movzx eax, word [eax]
mov dword [esp + 0x2c], eax
test edi, edi
je 0x10048ba7
cmp dword [ebp + 0x10], 0
jne 0x10048bd4
mov ecx, dword [esp + 0x28]
mov eax, 2
dec ecx
cmp ebx, ecx
mov ecx, 0
cmove eax, ecx
mov ecx, dword [esp + 0x10]
sub ecx, eax
mov eax, dword [esp + 0x2c]
add eax, 2
sub ecx, edx
add eax, edi
cmp eax, ecx
jg 0x10048bd4
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
add eax, 2
sub dword [esp + 0x30], 2
add edi, eax
mov eax, 0xfffffffe
sub eax, edx
mov edx, dword [esp + 0x1c]
add ecx, eax
mov dword [esp + 0x10], ecx
mov dword [edx + ebx*4], esi
sub esi, 1
jns 0x10048b40
jmp 0x10048bdc
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
lea ebx, [esp + 0xdc]
mov esi, dword [esp + 0x18]
mov dword [ebx + eax*4], edi
mov ebx, dword [esp + 0x78]
mov dword [esi + eax*4], ecx
cmp eax, 1
jle 0x10048c00
mov ecx, dword [edx + eax*4 - 4]
jmp 0x10048c02
xor ecx, ecx
cmp dword [edx + eax*4], ecx
jle 0x10048c35
dec eax
lea edi, [esp + 0xdc]
mov dword [esp + 0x34], eax
mov ecx, esi
test eax, eax
jg 0x10048b00
mov eax, dword [esp + 0xbc]
xor esi, esi
mov eax, dword [eax + 0x38]
lea edx, [esi + 1]
movzx eax, byte [eax]
mov dword [esp + 0x30], eax
jmp 0x10048c80
push 0x10167d54
push 0x131ac
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1002a9f0
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x100494f9
mov eax, dword [esp + 0xbc]
xor esi, esi
mov eax, dword [eax + 0x38]
movzx eax, byte [eax]
mov dword [esp + 0x30], eax
test ecx, ecx
jle 0x10048dfe
nop word [eax + eax]
cmp esi, dword [esp + 0x38]
jge 0x10048d34
mov eax, dword [esp + esi*4 + 0xbc]
mov dword [esp + esi*4 + 0xc8], eax
mov dword [esp + esi*4 + 0xbc], 0
mov dword [esp + 0x4c], eax
mov ecx, dword [eax + 0x48]
mov dword [esp + 0x2c], eax
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x10048cd0
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x10048cd0
cmp dword [edx + 0x68], 0
je 0x10048ccc
call fcn.10038e90
jmp 0x10048cf5
xor edi, edi
jmp 0x10048cf7
mov edi, dword [edx + 0x2c]
mov dword [esp + 0x20], edi
test edi, edi
jne 0x10048cfb
mov eax, dword [edx + 0x9c]
cmp eax, dword [edx + 0xa8]
jbe 0x10048cf0
call fcn.1003a950
jmp 0x10048cf5
call fcn.1003a8c0
mov edi, eax
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x50]
xor ecx, ecx
sub eax, dword [esp + 0x40]
inc dword [esp + 0x14]
cmp esi, eax
mov eax, dword [esp + 0x4c]
sete cl
mov dword [esp + 0x18], edi
inc ecx
mov eax, dword [eax + 0x48]
cmp dword [eax + 0x20], ecx
je 0x10048d27
test edi, edi
je 0x10048dd6
test edi, edi
jne 0x100494f5
jmp 0x10048dc5
cmp dword [ebp + 0x10], 0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x3c]
cmovne eax, edx
push 0
push eax
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x38]
call fcn.10045f20
mov edi, eax
add esp, 0xc
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edi
test edi, edi
jne 0x100494f5
mov edi, dword [esp + 0x2c]
mov ecx, edi
mov edx, dword [esp + 0x30]
call fcn.10041a40
mov ecx, dword [esp + 0x3c]
inc dword [esp + 0x14]
mov dword [esp + esi*4 + 0xc8], edi
mov dword [esp + esi*4 + 0x104], ebx
cmp byte [ecx + 0x11], 0
je 0x10048dbd
mov edx, dword [edi + 4]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x48]
push dword [eax + 4]
push 5
call fcn.10040310
mov edi, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x20], edi
test edi, edi
jne 0x100494f5
mov edx, dword [esp + 0x24]
mov dword [esp + 0x58], edx
inc esi
cmp esi, dword [esp + 0x28]
jge 0x10048dfe
mov edx, 1
jmp 0x10048c80
push 0x10167d54
push 0x131cd
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1002a9f0
add esp, 0x14
mov edi, 0xb
jmp 0x100494f5
mov edx, dword [esp + 0x14]
xor ecx, ecx
test edx, edx
jle 0x10048e26
nop dword [eax + eax]
mov eax, dword [esp + ecx*4 + 0xc8]
mov eax, dword [eax + 4]
mov dword [esp + ecx*4 + 0x118], eax
inc ecx
cmp ecx, edx
jl 0x10048e10
lea ebx, [edx - 1]
xor edi, edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], edi
test ebx, ebx
jle 0x10048f37
mov eax, ebx
nop dword [eax]
lea esi, [edi + 1]
mov ebx, edi
cmp esi, edx
jge 0x10048f2a
mov edi, dword [esp + 0x14]
nop dword [eax]
nop word [eax + eax]
mov eax, dword [esp + esi*4 + 0xc8]
mov ecx, esi
mov edx, dword [esp + ebx*4 + 0xc8]
mov eax, dword [eax + 4]
cmp eax, dword [edx + 4]
cmovae ecx, ebx
inc esi
mov ebx, ecx
cmp esi, edi
jl 0x10048e60
mov edi, dword [esp + 0x24]
mov dword [esp + 0x50], ebx
cmp ebx, edi
je 0x10048f22
mov ecx, dword [esp + edi*4 + 0xc8]
xor edx, edx
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + ebx*4 + 0xc8]
mov eax, dword [ecx + 4]
mov dword [esp + 0x4c], eax
mov eax, dword [0x1017a75c]
div dword [esi + 0x24]
mov ecx, dword [ecx + 0x48]
mov ebx, dword [edi + 4]
movzx esi, word [ecx + 0x1c]
lea edx, [eax + 1]
mov eax, dword [edi + 0x48]
movzx edi, word [eax + 0x1c]
mov word [ecx + 0x1c], di
call fcn.10034a90
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + ecx*4 + 0xc8]
mov ecx, dword [eax + 0x48]
mov word [ecx + 0x1c], si
mov esi, dword [esp + 0x4c]
mov edx, esi
call fcn.10034a90
mov ecx, dword [esp + 0x24]
mov edx, ebx
mov eax, dword [esp + ecx*4 + 0xc8]
mov ecx, dword [eax + 0x48]
mov word [ecx + 0x1c], di
call fcn.10034a90
mov edi, dword [esp + 0x24]
mov eax, dword [esp + edi*4 + 0xc8]
mov dword [eax + 4], ebx
mov eax, dword [esp + 0x50]
mov eax, dword [esp + eax*4 + 0xc8]
mov dword [eax + 4], esi
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
inc edi
mov dword [esp + 0x24], edi
cmp edi, eax
jl 0x10048e40
test byte [esp + 0x30], 8
mov eax, dword [esp + edx*4 + 0xc4]
mov ecx, dword [esp + 0x54]
mov eax, dword [eax + 4]
bswap eax
mov dword [ecx], eax
jne 0x10048f84
mov ecx, dword [esp + 0x38]
cmp ecx, edx
je 0x10048f84
lea eax, [esp + 0xc8]
lea esi, [esp + 0xbc]
cmovge eax, esi
mov eax, dword [eax + ecx*4 - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [esp + 0x14]
mov eax, dword [esp + eax*4 + 0xc4]
mov ecx, dword [eax + 0x38]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x78]
cmp byte [eax + 0x11], 0
je 0x10049124
mov edi, dword [esp + 0xc8]
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x54], 0
mov dword [esp + 0x10], ecx
movzx edx, word [edi + 0x18]
movzx eax, byte [edi + 0xc]
add edx, eax
mov dword [esp + 0x2c], edx
test esi, esi
jle 0x10049124
mov dword [esp + 0x50], ecx
mov dword [esp + 0x24], edi
nop dword [eax + eax]
mov eax, dword [esp + 0x80]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x1c], eax
cmp ecx, edx
jne 0x10049028
mov esi, dword [esp + 0x14]
xor eax, eax
cmp byte [esp + 0xf], al
sete al
mov dword [esp + 0x4c], eax
inc ebx
cmp ebx, esi
jge 0x10049001
mov edi, dword [esp + ebx*4 + 0xc8]
jmp 0x10049008
mov edi, dword [esp + ebx*4 + 0xbc]
movzx eax, word [edi + 0x18]
add eax, dword [esp + 0x4c]
movzx ecx, byte [edi + 0xc]
add ecx, eax
add edx, ecx
mov ecx, dword [esp + 0x10]
cmp ecx, edx
je 0x10048ff3
mov esi, dword [esp + 0x78]
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x50]
cmp ecx, dword [esp + eax + 0xf0]
jne 0x1004905d
mov eax, dword [esp + 0x54]
inc eax
mov dword [esp + 0x54], eax
shl eax, 2
cmp byte [esp + 0xf], 0
mov dword [esp + 0x50], eax
mov eax, dword [esp + eax + 0xc8]
mov dword [esp + 0x24], eax
je 0x10049117
jmp 0x10049061
mov eax, dword [esp + 0x24]
cmp ebx, dword [esp + 0x14]
jge 0x10049087
mov eax, dword [eax + 4]
cmp eax, dword [esp + ebx*4 + 0x118]
mov eax, dword [esp + 0x1c]
jne 0x1004908b
cmp eax, dword [edi + 0x38]
jb 0x1004908b
cmp eax, dword [edi + 0x3c]
jb 0x10049117
jmp 0x1004908b
mov eax, dword [esp + 0x1c]
cmp word [esp + 0x5c], 0
jne 0x100490bd
mov edx, dword [eax]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x28]
bswap edx
push dword [ecx + 4]
mov ecx, dword [esp + 0x44]
push 5
call fcn.10040310
mov eax, dword [esp + 0x24]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x84]
movzx eax, word [eax + ecx*2]
test ax, ax
jne 0x100490db
mov edx, ecx
lea ecx, [esp + 0x78]
call fcn.100476e0
movzx eax, ax
mov ecx, dword [esp + 0x24]
cmp ax, word [ecx + 0x10]
jbe 0x10049103
lea eax, [esp + 0x18]
mov edx, edi
push eax
mov eax, dword [esp + 0x20]
push eax
call fcn.10040ab0
mov eax, dword [esp + 0x20]
add esp, 8
mov dword [esp + 0x20], eax
jmp 0x10049107
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x100494f1
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, esi
jl 0x10048fd0
mov ebx, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x28], ecx
lea eax, [ebx - 1]
test eax, eax
jle 0x100492e3
nop dword [eax]
mov edi, dword [esp + ecx*4 + 0xf0]
mov edx, dword [esp + 0x80]
mov eax, dword [esp + ecx*4 + 0xc8]
mov ecx, dword [esp + 0x5c]
movzx esi, cx
mov ebx, dword [edx + edi*4]
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x4c], eax
movzx edx, word [edx + edi*2]
add edx, esi
mov esi, dword [esp + 0x6c]
add esi, dword [esp + 0x60]
cmp byte [eax + 8], 0
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x78]
jne 0x10049197
mov ecx, dword [eax + 0x38]
mov eax, dword [ebx]
mov dword [ecx + 8], eax
jmp 0x1004926a
cmp byte [esp + 0xf], 0
je 0x10049244
lea ecx, [esp + 0x118]
dec edi
push ecx
mov ecx, dword [esp + 0x84]
push dword [ecx + edi*4]
push eax
mov eax, dword [eax + 0x50]
call eax
mov edx, dword [esp + 0x128]
add esp, 0xc
mov eax, dword [esp + 0x24]
mov ebx, eax
mov ecx, dword [esp + 0x118]
test edx, edx
ja 0x1004922a
jb 0x100491dd
cmp ecx, 0x7f
ja 0x100491f5
and cl, 0x7f
mov dword [esp + 0x24], 0
mov byte [eax + 4], cl
mov eax, 1
lea edx, [eax + 4]
jmp 0x1004926a
test edx, edx
ja 0x1004922a
jb 0x10049203
cmp ecx, 0x3fff
ja 0x1004922a
mov eax, ecx
shrd eax, edx, 7
mov edx, dword [esp + 0x24]
or al, 0x80
mov dword [esp + 0x24], 0
and cl, 0x7f
mov byte [edx + 4], al
mov eax, 2
mov byte [edx + 5], cl
lea edx, [eax + 4]
jmp 0x1004926a
push edx
push ecx
lea ecx, [eax + 4]
call fcn.1002dde0
add esp, 8
mov dword [esp + 0x24], 0
lea edx, [eax + 4]
jmp 0x1004926a
mov esi, dword [esp + 0x84]
sub ebx, 4
cmp word [esi + edi*2], 4
mov esi, dword [esp + 0x78]
jne 0x1004926e
mov eax, dword [esp + 0x44]
push ebx
push eax
mov eax, dword [eax + 0x4c]
call eax
add esp, 8
movzx edx, ax
mov ecx, dword [esp + 0x28]
add dword [esp + 0x6c], edx
xor eax, eax
cmp dword [esp + eax*4 + 0xa0], edi
jg 0x10049283
inc eax
cmp eax, 6
jl 0x10049274
mov edi, dword [esp + eax*4 + 0x88]
cmp ebx, edi
jae 0x10049299
lea eax, [edx + ebx]
cmp eax, edi
ja 0x1004933d
mov eax, dword [esp + 0x4c]
push dword [eax + 4]
push dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x4c]
push ebx
lea edx, [edx + ecx]
mov ecx, dword [esp + 0x54]
call fcn.10047140
mov ebx, dword [esp + 0x24]
mov edi, eax
add esp, 0x10
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edi
test edi, edi
jne 0x100494f9
mov ecx, dword [esp + 0x28]
lea eax, [ebx - 1]
inc ecx
mov dword [esp + 0x28], ecx
cmp ecx, eax
jl 0x10049140
mov ecx, 1
sub ecx, ebx
mov dword [esp + 0x54], ecx
cmp ecx, ebx
jge 0x100493f7
mov eax, ecx
cdq
mov edi, eax
xor edi, edx
sub edi, edx
cmp byte [esp + edi + 0x134], 0
jne 0x100493ea
lea ebx, [edi*4]
test ecx, ecx
jns 0x1004932c
mov eax, dword [esp + ebx + 0x100]
cmp eax, dword [esp + ebx + 0xec]
jl 0x100493e6
test edi, edi
jne 0x10049365
mov ecx, dword [esp + 0xf0]
xor edx, edx
xor eax, eax
jmp 0x10049398
push 0x10167d54
push 0x13295
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1002a9f0
add esp, 0x14
mov edi, 0xb
jmp 0x100494f5
cmp edi, dword [esp + 0x38]
jge 0x1004937d
xor edx, edx
cmp byte [esp + 0xf], dl
sete dl
add edx, dword [esp + ebx + 0x100]
jmp 0x1004937f
mov edx, esi
mov ecx, dword [esp + ebx + 0xf0]
xor eax, eax
cmp byte [esp + 0xf], al
sete al
add eax, dword [esp + ebx + 0xec]
sub ecx, eax
lea esi, [esp + 0x78]
push esi
push ecx
mov ecx, dword [esp + ebx + 0xd0]
push eax
call fcn.10047bd0
mov esi, dword [esp + 0x84]
add esp, 0xc
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
test eax, eax
jne 0x100494f1
mov eax, dword [esp + ebx + 0xc8]
mov ecx, dword [esp + 0x48]
sub ecx, dword [esp + ebx + 0xdc]
mov byte [esp + edi + 0x134], 1
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x54], ecx
cmp ecx, ebx
jl 0x100492f6
cmp dword [ebp + 0xc], 0
je 0x1004945d
mov esi, dword [esp + 0x44]
cmp word [esi + 0x18], 0
jne 0x1004945d
mov ecx, dword [esp + 0xc8]
movzx eax, byte [esi + 9]
cmp eax, dword [ecx + 0x14]
jg 0x1004945d
or edx, 0xffffffff
call fcn.10040c80
mov ecx, dword [esp + 0xc8]
mov edx, esi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
call fcn.100480f0
mov edi, dword [esp + 0x1c]
add esp, 4
test edi, edi
jne 0x100494b4
mov ecx, dword [esp + 0xc8]
mov edx, ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x34]
call fcn.100465e0
add esp, 4
mov edi, eax
jmp 0x100494b4
mov ecx, dword [esp + 0x3c]
cmp byte [ecx + 0x11], 0
je 0x100494b0
cmp word [esp + 0x5c], 0
jne 0x100494b0
xor esi, esi
test ebx, ebx
jle 0x100494b0
nop word [eax + eax]
mov eax, dword [esp + esi*4 + 0xc8]
lea edx, [esp + 0x18]
push edx
push dword [eax + 4]
mov eax, dword [eax + 0x38]
push 5
mov edx, dword [eax + 8]
bswap edx
call fcn.10040310
mov ecx, dword [esp + 0x48]
inc esi
add esp, 0xc
cmp esi, ebx
jl 0x10049480
mov edi, dword [esp + 0x18]
jmp 0x100494b4
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
mov esi, ebx
cmp ebx, eax
jge 0x100494f9
nop
mov ecx, dword [esp + esi*4 + 0xbc]
test edi, edi
jne 0x100494e1
push dword [ecx + 4]
mov edx, ecx
mov ecx, dword [ecx + 0x34]
call fcn.100465e0
mov edi, eax
add esp, 4
mov eax, dword [esp + 0x38]
inc esi
cmp esi, eax
jl 0x100494c0
jmp 0x100494f9
lea eax, [ebx + 4]
push eax
jmp 0x10048465
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x80]
test eax, eax
je 0x1004950d
mov edx, eax
xor ecx, ecx
call fcn.10027de0
mov eax, dword [esp + 0x38]
xor esi, esi
test eax, eax
jle 0x1004953c
nop word [eax + eax]
mov ecx, dword [esp + esi*4 + 0xbc]
test ecx, ecx
je 0x10049537
mov ecx, dword [ecx + 0x48]
call fcn.1003a430
mov eax, dword [esp + 0x38]
inc esi
cmp esi, eax
jl 0x10049520
xor esi, esi
test ebx, ebx
jle 0x1004955a
mov ecx, dword [esp + esi*4 + 0xc8]
test ecx, ecx
je 0x10049555
mov ecx, dword [ecx + 0x48]
call fcn.1003a430
inc esi
cmp esi, ebx
jl 0x10049542
mov ecx, dword [esp + 0x13c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1013942d
mov esp, ebp
pop ebp
ret