Function at 0x10046de0
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.10138870
mov eax, dword [ebx + 0x34]
add esp, 0xc
mov dword [esp + 0x3c], eax
test esi, esi
jne 0x10046e72
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.10136e2d
mov esp, ebp
pop ebp
ret
movzx edx, word [ebx + 0x18]
movzx ecx, byte [ebx + 0xc]
lea esi, [ecx + edx]
cmp esi, 2
jae 0x10046e88
mov dword [esp + 0x40], edi
jmp 0x10046eb7
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x10046e96
mov dword [esp + 0x40], edi
jmp 0x10046ead
cmp eax, esi
jne 0x10046ea8
mov eax, dword [ebp + 0x10]
add esi, 0xfffffffe
add esi, eax
mov dword [esp + 0x40], esi
jmp 0x10046eb0
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 0x10046ed4
movzx ecx, byte [ebx + 9]
add ecx, 8
jmp 0x10046ee8
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 0x10048108
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0xbc]
add eax, ebx
push edi
push eax
call fcn.10040760
mov edi, eax
add esp, 8
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edi
test edi, edi
jne 0x10048108
lea eax, [esp + 0xbc]
add eax, ebx
mov dword [esp + 0x2c], eax
mov ecx, dword [eax]
cmp dword [ecx + 0x14], edi
jge 0x10046f67
call fcn.100402b0
mov edi, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edi
test edi, edi
jne 0x10047084
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 0x1004709e
mov ebx, dword [esp + 0x44]
mov dl, byte [ebx + 0xc]
test dl, dl
je 0x10046fd2
mov eax, dword [esp + 0x40]
movzx ecx, word [ebx + 0x1c]
add eax, esi
cmp eax, ecx
jne 0x10046fd2
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 0x10046f00
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 0x10047053
mov eax, dword [esp + 0x44]
mov ecx, edi
sub ecx, dword [eax + 0x38]
lea eax, [ebx + ecx]
cmp eax, dword [edx + 0x28]
jg 0x10047053
mov eax, dword [esp + 0x60]
push ebx
add eax, ecx
push edi
push eax
call fcn.10139d00
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.10045c20
mov edi, dword [esp + 0x20]
add esp, 8
mov edx, dword [esp + 0x58]
mov dword [esp + 0x20], edi
jmp 0x10046f00
push ebx
lea eax, [esp + 0xc0]
push 0
push eax
call fcn.10138870
add esp, 0xc
xor ebx, ebx
jmp 0x10048119
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.100267c0
mov ebx, eax
add esp, 8
mov dword [esp + 0x80], ebx
test ebx, ebx
jne 0x100470d1
lea edi, [eax + 7]
jmp 0x10048119
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 0x10047352
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 0x10047448
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.10138870
add esp, 0xc
cmp byte [edi + 0xc], 0
jbe 0x100471ff
movzx edx, word [edi + 0x1c]
cmp dword [esp + 0x34], edx
jb 0x10047324
test edx, edx
je 0x100471d4
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 0x100471a0
mov edi, dword [esp + 0x28]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x30], esi
xor edx, edx
cmp byte [edi + 0xc], dl
jbe 0x100471ff
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 0x100471e5
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 0x1004724f
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 0x10047220
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 0x1004730d
cmp byte [esp + 0xf], 0
jne 0x1004730d
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.10139d00
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 0x100472de
mov eax, dword [edi + 0x38]
mov ecx, dword [esi + ebx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x10047304
cmp ecx, 4
jae 0x10047304
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 0x100472f0
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 0x1004734e
mov ecx, dword [esp + 0xbc]
jmp 0x10047120
push 0x10166fc4
push 0x130fa
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100296a0
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x10048119
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 0x10047490
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 0x100473c8
cmp ecx, dword [esp + edx*4 + 0x9c]
jne 0x100473c8
dec edx
mov dword [esp + 0x10], edx
cmp byte [esp + 0xf], 0
jne 0x100473ec
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 0x10047472
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 0x10047410
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov dword [esp + eax*4 + 0xdc], edi
jmp 0x10047476
push 0x10166fc4
push 0x130e2
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100296a0
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x10048119
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 0x10047390
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 0x100476e9
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 0x100475a8
mov esi, dword [esp + 0x78]
lea ecx, [esp + 0xe0]
add ecx, edi
cmp eax, dword [esp + 0x28]
jl 0x10047501
inc eax
mov dword [esp + 0x28], eax
cmp eax, 5
jg 0x10047695
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 0x10047527
lea ecx, [esp + 0x78]
call fcn.10046300
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 0x10047578
cmp ebx, esi
jge 0x10047576
mov eax, dword [esp + 0x84]
movzx eax, word [eax + ebx*2]
test ax, ax
jne 0x1004756e
mov edx, ebx
lea ecx, [esp + 0x78]
call fcn.10046300
mov edx, dword [esp + 0x10]
movzx eax, ax
movzx ecx, ax
add ecx, 2
jmp 0x10047578
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 0x100474e0
mov ebx, dword [esp + 0x78]
mov esi, dword [esp + edi + 0xf0]
cmp esi, ebx
jge 0x1004764d
mov ecx, dword [esp + 0x84]
nop
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x100475e2
mov edx, esi
lea ecx, [esp + 0x78]
call fcn.10046300
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 0x10047649
inc esi
mov dword [esp + edi + 0xdc], edx
cmp byte [esp + 0xf], 0
mov dword [esp + edi + 0xf0], esi
jne 0x1004763a
cmp esi, ebx
jge 0x10047638
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x10047630
mov edx, esi
lea ecx, [esp + 0x78]
call fcn.10046300
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x84]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x1004763a
xor eax, eax
sub dword [esp + edi + 0xe0], eax
cmp esi, ebx
jl 0x100475c0
cmp esi, ebx
jl 0x10047659
mov eax, dword [esp + 0x1c]
mov ecx, eax
mov dword [esp + 0x28], ecx
jmp 0x10047677
cmp dword [esp + 0x30], 0
jle 0x10047669
mov eax, dword [esp + edi + 0xec]
jmp 0x1004766b
xor eax, eax
cmp esi, eax
jle 0x100476bf
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 0x100476e9
mov esi, dword [esp + 0x48]
jmp 0x100474c0
push 0x10166fc4
push 0x1315f
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100296a0
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x10048119
push 0x10166fc4
push 0x13180
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100296a0
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x10048119
lea eax, [ecx - 1]
mov edx, 1
mov dword [esp + 0x34], eax
test eax, eax
jle 0x1004787f
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 0x10047753
lea ecx, [esp + 0x78]
call fcn.10046300
mov ebx, dword [esp + 0x34]
nop word [eax + eax]
mov eax, dword [esp + 0x84]
movzx eax, word [eax + esi*2]
test ax, ax
jne 0x1004777e
mov edx, esi
lea ecx, [esp + 0x78]
call fcn.10046300
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 0x100477c7
cmp dword [ebp + 0x10], 0
jne 0x100477f4
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 0x100477f4
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 0x10047760
jmp 0x100477fc
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 0x10047820
mov ecx, dword [edx + eax*4 - 4]
jmp 0x10047822
xor ecx, ecx
cmp dword [edx + eax*4], ecx
jle 0x10047855
dec eax
lea edi, [esp + 0xdc]
mov dword [esp + 0x34], eax
mov ecx, esi
test eax, eax
jg 0x10047720
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 0x100478a0
push 0x10166fc4
push 0x131ac
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100296a0
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x10048119
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 0x10047a1e
nop word [eax + eax]
cmp esi, dword [esp + 0x38]
jge 0x10047954
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 0x100478f0
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x100478f0
cmp dword [edx + 0x68], 0
je 0x100478ec
call fcn.10037920
jmp 0x10047915
xor edi, edi
jmp 0x10047917
mov edi, dword [edx + 0x2c]
mov dword [esp + 0x20], edi
test edi, edi
jne 0x1004791b
mov eax, dword [edx + 0x9c]
cmp eax, dword [edx + 0xa8]
jbe 0x10047910
call fcn.100393e0
jmp 0x10047915
call fcn.10039350
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 0x10047947
test edi, edi
je 0x100479f6
test edi, edi
jne 0x10048115
jmp 0x100479e5
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.10044b30
mov edi, eax
add esp, 0xc
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edi
test edi, edi
jne 0x10048115
mov edi, dword [esp + 0x2c]
mov ecx, edi
mov edx, dword [esp + 0x30]
call fcn.100405f0
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 0x100479dd
mov edx, dword [edi + 4]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x48]
push dword [eax + 4]
push 5
call fcn.1003eed0
mov edi, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x20], edi
test edi, edi
jne 0x10048115
mov edx, dword [esp + 0x24]
mov dword [esp + 0x58], edx
inc esi
cmp esi, dword [esp + 0x28]
jge 0x10047a1e
mov edx, 1
jmp 0x100478a0
push 0x10166fc4
push 0x131cd
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100296a0
add esp, 0x14
mov edi, 0xb
jmp 0x10048115
mov edx, dword [esp + 0x14]
xor ecx, ecx
test edx, edx
jle 0x10047a46
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 0x10047a30
lea ebx, [edx - 1]
xor edi, edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], edi
test ebx, ebx
jle 0x10047b57
mov eax, ebx
nop dword [eax]
lea esi, [edi + 1]
mov ebx, edi
cmp esi, edx
jge 0x10047b4a
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 0x10047a80
mov edi, dword [esp + 0x24]
mov dword [esp + 0x50], ebx
cmp ebx, edi
je 0x10047b42
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 [0x1017986c]
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.10033510
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.10033510
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.10033510
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 0x10047a60
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 0x10047ba4
mov ecx, dword [esp + 0x38]
cmp ecx, edx
je 0x10047ba4
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 0x10047d44
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 0x10047d44
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 0x10047c48
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 0x10047c21
mov edi, dword [esp + ebx*4 + 0xc8]
jmp 0x10047c28
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 0x10047c13
mov esi, dword [esp + 0x78]
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x50]
cmp ecx, dword [esp + eax + 0xf0]
jne 0x10047c7d
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 0x10047d37
jmp 0x10047c81
mov eax, dword [esp + 0x24]
cmp ebx, dword [esp + 0x14]
jge 0x10047ca7
mov eax, dword [eax + 4]
cmp eax, dword [esp + ebx*4 + 0x118]
mov eax, dword [esp + 0x1c]
jne 0x10047cab
cmp eax, dword [edi + 0x38]
jb 0x10047cab
cmp eax, dword [edi + 0x3c]
jb 0x10047d37
jmp 0x10047cab
mov eax, dword [esp + 0x1c]
cmp word [esp + 0x5c], 0
jne 0x10047cdd
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.1003eed0
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 0x10047cfb
mov edx, ecx
lea ecx, [esp + 0x78]
call fcn.10046300
movzx eax, ax
mov ecx, dword [esp + 0x24]
cmp ax, word [ecx + 0x10]
jbe 0x10047d23
lea eax, [esp + 0x18]
mov edx, edi
push eax
mov eax, dword [esp + 0x20]
push eax
call fcn.1003f680
mov eax, dword [esp + 0x20]
add esp, 8
mov dword [esp + 0x20], eax
jmp 0x10047d27
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x10048111
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, esi
jl 0x10047bf0
mov ebx, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x28], ecx
lea eax, [ebx - 1]
test eax, eax
jle 0x10047f03
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 0x10047db7
mov ecx, dword [eax + 0x38]
mov eax, dword [ebx]
mov dword [ecx + 8], eax
jmp 0x10047e8a
cmp byte [esp + 0xf], 0
je 0x10047e64
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 0x10047e4a
jb 0x10047dfd
cmp ecx, 0x7f
ja 0x10047e15
and cl, 0x7f
mov dword [esp + 0x24], 0
mov byte [eax + 4], cl
mov eax, 1
lea edx, [eax + 4]
jmp 0x10047e8a
test edx, edx
ja 0x10047e4a
jb 0x10047e23
cmp ecx, 0x3fff
ja 0x10047e4a
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 0x10047e8a
push edx
push ecx
lea ecx, [eax + 4]
call fcn.1002c880
add esp, 8
mov dword [esp + 0x24], 0
lea edx, [eax + 4]
jmp 0x10047e8a
mov esi, dword [esp + 0x84]
sub ebx, 4
cmp word [esi + edi*2], 4
mov esi, dword [esp + 0x78]
jne 0x10047e8e
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 0x10047ea3
inc eax
cmp eax, 6
jl 0x10047e94
mov edi, dword [esp + eax*4 + 0x88]
cmp ebx, edi
jae 0x10047eb9
lea eax, [edx + ebx]
cmp eax, edi
ja 0x10047f5d
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.10045d40
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 0x10048119
mov ecx, dword [esp + 0x28]
lea eax, [ebx - 1]
inc ecx
mov dword [esp + 0x28], ecx
cmp ecx, eax
jl 0x10047d60
mov ecx, 1
sub ecx, ebx
mov dword [esp + 0x54], ecx
cmp ecx, ebx
jge 0x10048017
mov eax, ecx
cdq
mov edi, eax
xor edi, edx
sub edi, edx
cmp byte [esp + edi + 0x134], 0
jne 0x1004800a
lea ebx, [edi*4]
test ecx, ecx
jns 0x10047f4c
mov eax, dword [esp + ebx + 0x100]
cmp eax, dword [esp + ebx + 0xec]
jl 0x10048006
test edi, edi
jne 0x10047f85
mov ecx, dword [esp + 0xf0]
xor edx, edx
xor eax, eax
jmp 0x10047fb8
push 0x10166fc4
push 0x13295
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100296a0
add esp, 0x14
mov edi, 0xb
jmp 0x10048115
cmp edi, dword [esp + 0x38]
jge 0x10047f9d
xor edx, edx
cmp byte [esp + 0xf], dl
sete dl
add edx, dword [esp + ebx + 0x100]
jmp 0x10047f9f
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.100467f0
mov esi, dword [esp + 0x84]
add esp, 0xc
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
test eax, eax
jne 0x10048111
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 0x10047f16
cmp dword [ebp + 0xc], 0
je 0x1004807d
mov esi, dword [esp + 0x44]
cmp word [esi + 0x18], 0
jne 0x1004807d
mov ecx, dword [esp + 0xc8]
movzx eax, byte [esi + 9]
cmp eax, dword [ecx + 0x14]
jg 0x1004807d
or edx, 0xffffffff
call fcn.1003f850
mov ecx, dword [esp + 0xc8]
mov edx, esi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
call fcn.10046d10
mov edi, dword [esp + 0x1c]
add esp, 4
test edi, edi
jne 0x100480d4
mov ecx, dword [esp + 0xc8]
mov edx, ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x34]
call fcn.100451e0
add esp, 4
mov edi, eax
jmp 0x100480d4
mov ecx, dword [esp + 0x3c]
cmp byte [ecx + 0x11], 0
je 0x100480d0
cmp word [esp + 0x5c], 0
jne 0x100480d0
xor esi, esi
test ebx, ebx
jle 0x100480d0
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.1003eed0
mov ecx, dword [esp + 0x48]
inc esi
add esp, 0xc
cmp esi, ebx
jl 0x100480a0
mov edi, dword [esp + 0x18]
jmp 0x100480d4
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
mov esi, ebx
cmp ebx, eax
jge 0x10048119
nop
mov ecx, dword [esp + esi*4 + 0xbc]
test edi, edi
jne 0x10048101
push dword [ecx + 4]
mov edx, ecx
mov ecx, dword [ecx + 0x34]
call fcn.100451e0
mov edi, eax
add esp, 4
mov eax, dword [esp + 0x38]
inc esi
cmp esi, eax
jl 0x100480e0
jmp 0x10048119
lea eax, [ebx + 4]
push eax
jmp 0x10047085
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x80]
test eax, eax
je 0x1004812d
mov edx, eax
xor ecx, ecx
call fcn.10026a90
mov eax, dword [esp + 0x38]
xor esi, esi
test eax, eax
jle 0x1004815c
nop word [eax + eax]
mov ecx, dword [esp + esi*4 + 0xbc]
test ecx, ecx
je 0x10048157
mov ecx, dword [ecx + 0x48]
call fcn.10038eb0
mov eax, dword [esp + 0x38]
inc esi
cmp esi, eax
jl 0x10048140
xor esi, esi
test ebx, ebx
jle 0x1004817a
mov ecx, dword [esp + esi*4 + 0xc8]
test ecx, ecx
je 0x10048175
mov ecx, dword [ecx + 0x48]
call fcn.10038eb0
inc esi
cmp esi, ebx
jl 0x10048162
mov ecx, dword [esp + 0x13c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10136e2d
mov esp, ebp
pop ebp
ret