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

Disassembly:
sub esp, 0x144
mov eax, dword [0x571134]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x15c]
xor eax, eax
push edi
mov edi, dword [esp + 0x158]
xor ebx, ebx
push 0x40
mov dword [esp + 0x14], eax
xor ebp, ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x14c], eax
mov byte [esp + 0x150], al
lea eax, [esp + 0x9c]
push ebx
push eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x3c], ebx
call fcn.004fd610
mov eax, dword [edi + 0x34]
add esp, 0xc
mov dword [esp + 0x34], eax
test esi, esi
jne 0x45f62c
lea eax, [esi + 7]
jmp 0x460b05
movzx edx, word [edi + 0x18]
movzx ecx, byte [edi + 0xc]
lea esi, [ecx + edx]
cmp esi, 2
jae 0x45f642
mov dword [esp + 0x40], ebx
jmp 0x45f67c
mov eax, dword [esp + 0x15c]
test eax, eax
jne 0x45f653
mov dword [esp + 0x40], ebx
jmp 0x45f66e
cmp eax, esi
jne 0x45f669
mov eax, dword [esp + 0x168]
add esi, 0xfffffffe
add esi, eax
mov dword [esp + 0x40], esi
jmp 0x45f675
dec eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x168]
mov esi, 2
sub esi, eax
lea eax, [esi + 1]
mov dword [esp + 0x68], esi
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x40]
sub eax, ecx
lea ecx, [eax + esi]
cmp ecx, edx
jne 0x45f69d
movzx ecx, byte [edi + 9]
add ecx, 8
jmp 0x45f6b1
mov eax, dword [edi + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x1a]
movzx ecx, cx
and ecx, eax
add ecx, dword [edi + 0x38]
mov dword [esp + 0x3c], ecx
mov edi, dword [ecx]
xor ecx, ecx
bswap edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x5c], edi
test ecx, ecx
jne 0x45f6ed
push ecx
lea eax, [esp + 0xf0]
lea eax, [eax + esi*4]
push eax
push edi
push dword [esp + 0x40]
call fcn.00474c20
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], ecx
lea edi, [esi*4]
test ecx, ecx
jne 0x460967
mov eax, dword [esp + edi + 0xec]
cmp dword [eax + 0x14], ebx
jge 0x45f723
push eax
call fcn.004617b0
mov ecx, eax
add esp, 4
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], ecx
test ecx, ecx
jne 0x45f854
mov eax, dword [esp + edi + 0xec]
movzx eax, word [eax + 0x18]
add eax, 4
add ebp, eax
mov eax, esi
dec esi
mov dword [esp + 0x18], ebp
test eax, eax
je 0x45f860
mov edi, dword [esp + 0x2c]
mov dl, byte [edi + 0xc]
test dl, dl
je 0x45f796
mov eax, dword [esp + 0x40]
movzx ecx, word [edi + 0x1c]
add eax, esi
cmp eax, ecx
jne 0x45f796
mov eax, dword [edi + 0x24]
push eax
mov dword [esp + esi*4 + 0x7c], eax
mov edi, dword [eax]
mov eax, dword [esp + 0x30]
bswap edi
push eax
mov dword [esp + 0x40], edi
mov eax, dword [eax + 0x4c]
mov dword [esp + 0x64], edi
call eax
mov ecx, dword [esp + 0x34]
add esp, 8
movzx eax, ax
mov dword [esp + esi*4 + 0xf8], eax
mov byte [ecx + 0xc], bl
mov ecx, dword [esp + 0x10]
jmp 0x45f6c6
mov ecx, dword [esp + 0x40]
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 + 0x1a]
mov edi, dword [edi + 0x38]
movzx ecx, cx
and ecx, eax
add edi, ecx
push edi
mov dword [esp + esi*4 + 0x7c], edi
mov eax, dword [edi]
bswap eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [eax + 0x4c]
call eax
mov edx, dword [esp + 0x3c]
add esp, 8
movzx ebp, ax
mov dword [esp + esi*4 + 0xf8], ebp
test byte [edx + 0x18], 0xc
je 0x45f81f
mov eax, dword [esp + 0x2c]
mov ecx, edi
sub ecx, dword [eax + 0x38]
lea eax, [ecx + ebp]
cmp eax, dword [edx + 0x28]
jg 0x45f81f
mov eax, dword [esp + 0x60]
push ebp
add eax, ecx
push edi
push eax
call fcn.004fd090
mov ecx, dword [esp + 0x38]
add esp, 0xc
mov eax, dword [esp + 0x60]
sub eax, dword [ecx + 0x38]
add eax, edi
mov dword [esp + esi*4 + 0x78], eax
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x20]
push eax
push ebp
mov ebp, dword [esp + 0x34]
movzx eax, byte [ebp + 0xc]
sub ecx, eax
add ecx, esi
push ecx
push ebp
call fcn.0046a740
mov ecx, dword [esp + 0x30]
add esp, 0x10
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x10], ecx
jmp 0x45f6c6
lea eax, [esi*4]
jmp 0x46096a
mov eax, dword [esp + 0x34]
lea esi, [ebp + 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.004b17f0
add esp, 8
mov dword [esp + 0xa0], eax
test eax, eax
jne 0x45f897
mov ebp, 7
mov dword [esp + 0x10], ebp
jmp 0x4609e5
mov ecx, dword [esp + 0xec]
lea eax, [eax + esi*4]
mov ebp, dword [esp + 0x44]
mov dword [esp + 0xa4], eax
lea eax, [eax + esi*2]
mov dword [esp + 0x4c], eax
movzx eax, byte [ecx + 8]
shl ax, 2
movzx eax, ax
mov dword [esp + 0x50], eax
mov al, byte [ecx + 2]
mov byte [esp + 0x17], al
movzx eax, al
mov dword [esp + 0x70], eax
xor eax, eax
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x1c], eax
test ebp, ebp
jle 0x45fb21
nop word [eax + eax]
shl eax, 2
mov dword [esp + 0x64], eax
mov edi, dword [esp + eax + 0xec]
mov dword [esp + 0x48], edi
movzx eax, word [edi + 0x1a]
mov ebp, dword [edi + 0x38]
mov ecx, eax
movzx esi, word [edi + 0x12]
movzx edx, word [edi + 0x18]
add esi, ebp
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x24], ebp
mov ecx, dword [eax + 0x38]
mov al, byte [ebp]
mov dword [esp + 0x18], esi
cmp al, byte [ecx]
jne 0x45fd3a
movzx eax, byte [edi + 0xc]
mov ecx, dword [esp + 0xa4]
add eax, edx
add eax, eax
push eax
mov eax, dword [esp + 0x9c]
push 0
lea eax, [ecx + eax*2]
push eax
call fcn.004fd610
mov al, byte [edi + 0xc]
add esp, 0xc
test al, al
je 0x45fa06
movzx edx, word [edi + 0x1c]
cmp dword [esp + 0x58], edx
jb 0x45fd0e
test edx, edx
je 0x45f9ca
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x98]
nop dword [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 + 0xa0]
add ecx, ebp
mov dword [eax + ebx*4], ecx
inc ebx
sub edx, 1
jne 0x45f990
mov edi, dword [esp + 0x48]
mov dword [esp + 0x98], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x18], esi
mov al, byte [edi + 0xc]
xor edx, edx
test al, al
je 0x45fa06
mov ebx, dword [esp + 0x98]
lea ecx, [edi + 0x24]
mov esi, dword [esp + 0xa0]
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 0x45f9e1
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x98], ebx
mov ebx, dword [esp + 0x30]
movzx eax, word [edi + 0x12]
movzx ecx, word [edi + 0x18]
add eax, ebp
lea edx, [eax + ecx*2]
cmp esi, edx
jae 0x45fa54
mov edi, dword [esp + 0x74]
mov ebx, dword [esp + 0x98]
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 + 0xa0]
add ecx, ebp
mov dword [eax + ebx*4], ecx
inc ebx
cmp esi, edx
jb 0x45fa22
mov edi, dword [esp + 0x48]
mov dword [esp + 0x98], ebx
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x98]
mov dword [esp + ecx + 0x120], edx
cmp eax, dword [esp + 0x68]
jge 0x45fb10
cmp byte [esp + 0x17], 0
jne 0x45fb10
movzx eax, word [esp + ecx + 0xf8]
mov esi, dword [esp + 0xa4]
mov ebp, dword [esp + 0x4c]
push eax
push dword [esp + ecx + 0x7c]
mov word [esi + edx*2], ax
lea esi, [ebx + ebp]
add ebx, eax
push esi
mov dword [esp + 0x3c], ebx
call fcn.004fd090
mov eax, dword [esp + 0x5c]
add esp, 0xc
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0xa0]
movzx eax, ax
add eax, esi
mov esi, dword [esp + 0x50]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0xa4]
sub word [eax + edx*2], si
cmp byte [edi + 8], 0
jne 0x45fae9
mov eax, dword [edi + 0x38]
mov ecx, dword [ecx + edx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x45fb04
cmp word [eax + edx*2], 4
jae 0x45fb04
mov byte [ebx + ebp], 0
inc ebx
inc word [eax + edx*2]
cmp word [eax + edx*2], 4
jb 0x45faf0
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x1c]
inc edx
mov dword [esp + 0x98], edx
mov ebp, dword [esp + 0x44]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, ebp
jl 0x45f8f0
mov eax, dword [esp + 0x50]
xor ebx, ebx
movzx ecx, ax
xor edx, edx
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edx
mov eax, dword [eax + 0x28]
add eax, 0xfffffff4
add eax, ecx
mov dword [esp + 0x30], eax
test ebp, ebp
jle 0x45fc28
nop dword [eax]
mov esi, dword [esp + edx*4 + 0xec]
mov ecx, dword [esp + edx*4 + 0x120]
mov dword [esp + 0x64], ecx
mov eax, dword [esi + 0x3c]
mov dword [esp + ebx*4 + 0xa8], eax
mov dword [esp + ebx*4 + 0xc0], ecx
test ebx, ebx
je 0x45fb85
cmp ecx, dword [esp + ebx*4 + 0xbc]
jne 0x45fb85
dec ebx
mov dword [esp + 0x1c], ebx
cmp byte [esp + 0x17], 0
jne 0x45fba9
mov eax, dword [esp + 0x2c]
inc ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [eax + 0x3c]
mov dword [esp + ebx*4 + 0xa8], eax
lea eax, [ecx + 1]
mov dword [esp + ebx*4 + 0xc0], eax
mov edi, dword [esp + 0x30]
lea eax, [esp + 0xf8]
sub edi, dword [esi + 0x14]
lea eax, [eax + edx*4]
cmp byte [esi + 0xc], 0
mov dword [esp + 0x68], eax
mov dword [eax], edi
mov dword [esp + 0x4c], 0
jbe 0x45fc0b
mov ebx, dword [esp + 0x4c]
lea ebp, [esi + 0x24]
push dword [ebp]
mov eax, dword [esi + 0x4c]
push esi
call eax
movzx eax, ax
lea ebp, [ebp + 4]
add eax, 2
inc ebx
add edi, eax
add esp, 8
movzx eax, byte [esi + 0xc]
cmp ebx, eax
jl 0x45fbd5
mov eax, dword [esp + 0x68]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x44]
mov dword [eax], edi
mov dword [esp + edx*4 + 0x10c], ecx
inc ebx
inc edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edx
cmp edx, ebp
jl 0x45fb50
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], 0
mov edx, ebp
mov dword [esp + 0x24], edx
test ebp, ebp
jle 0x45fee0
mov ecx, dword [esp + 0x98]
mov ebx, 1
mov dword [esp + 0x18], ebx
xor ebp, ebp
mov edi, dword [esp + ebp + 0xf8]
cmp edi, eax
jle 0x45fd8f
nop
cmp ebx, edx
jl 0x45fc8d
lea edx, [ebx + 1]
mov dword [esp + 0x24], edx
cmp edx, 5
jg 0x45fe88
mov dword [esp + ebp + 0xfc], 0
mov edi, dword [esp + ebp + 0xf8]
mov dword [esp + ebp + 0x110], ecx
mov esi, dword [esp + ebp + 0x10c]
mov ecx, dword [esp + 0xa4]
lea ebx, [esi - 1]
movzx eax, word [ecx + ebx*2]
test ax, ax
jne 0x45fcc2
lea eax, [esp + 0x98]
push ebx
push eax
call fcn.00466ed0
mov ecx, dword [esp + 0xac]
add esp, 8
movzx eax, ax
movzx eax, ax
add eax, 2
sub edi, eax
cmp byte [esp + 0x17], 0
mov dword [esp + ebp + 0xf8], edi
jne 0x45fd68
cmp esi, dword [esp + 0x98]
jge 0x45fd66
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x45fd06
lea eax, [esp + 0x98]
push esi
push eax
call fcn.00466ed0
add esp, 8
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x45fd68
push 0x5398bc
push 0x13256
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0045a560
mov ebp, 0xb
add esp, 0x14
mov dword [esp + 0x10], ebp
jmp 0x460981
push 0x5398bc
push 0x1323e
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0045a560
mov ebp, 0xb
add esp, 0x14
mov dword [esp + 0x10], ebp
jmp 0x460981
xor eax, eax
add dword [esp + ebp + 0xfc], eax
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x24]
mov dword [esp + ebp + 0x10c], ebx
mov ebx, dword [esp + 0x18]
cmp edi, dword [esp + 0x30]
jg 0x45fc60
mov esi, dword [esp + ebp + 0x10c]
cmp esi, ecx
jge 0x45fe40
mov edx, dword [esp + 0xa4]
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x45fdd0
lea eax, [esp + 0x98]
push esi
push eax
call fcn.00466ed0
mov ecx, dword [esp + 0xa0]
add esp, 8
mov edx, dword [esp + 0xa4]
movzx eax, ax
movzx eax, ax
add eax, 2
add edi, eax
cmp edi, dword [esp + 0x30]
jg 0x45fe68
inc esi
mov dword [esp + ebp + 0xf8], edi
cmp byte [esp + 0x17], 0
mov dword [esp + ebp + 0x10c], esi
jne 0x45fe31
cmp esi, ecx
jge 0x45fe2f
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x45fe27
lea eax, [esp + 0x98]
push esi
push eax
call fcn.00466ed0
mov ecx, dword [esp + 0xa0]
add esp, 8
mov edx, dword [esp + 0xa4]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x45fe31
xor eax, eax
sub dword [esp + ebp + 0xfc], eax
cmp esi, ecx
jl 0x45fda5
mov edx, ebx
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x1c]
inc ebx
inc eax
mov dword [esp + 0x18], ebx
add ebp, 4
mov dword [esp + 0x1c], eax
cmp eax, edx
jge 0x45fee0
mov eax, dword [esp + 0x30]
jmp 0x45fc50
cmp esi, ecx
jge 0x45fe40
cmp dword [esp + 0x1c], 0
jle 0x45fe7c
mov eax, dword [esp + ebp + 0x108]
jmp 0x45fe7e
xor eax, eax
cmp esi, eax
jle 0x45feb4
mov edx, dword [esp + 0x24]
jmp 0x45fe46
push 0x5398bc
push 0x132bb
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0045a560
mov ebp, 0xb
add esp, 0x14
mov dword [esp + 0x10], ebp
jmp 0x460981
push 0x5398bc
push 0x132dc
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0045a560
mov ebp, 0xb
add esp, 0x14
mov dword [esp + 0x10], ebp
jmp 0x460981
lea eax, [edx - 1]
mov ecx, eax
mov dword [esp + 0x18], eax
test ecx, ecx
jle 0x46002d
lea edi, [ecx*4]
mov ecx, dword [esp + 0xa4]
mov ebx, dword [esp + edi + 0xf8]
lea eax, [esp + 0x10c]
mov ebp, dword [esp + edi + 0xf4]
sub eax, 4
mov dword [esp + 0x48], eax
mov dword [esp + 0x58], edi
mov esi, dword [eax + edi]
mov dword [esp + 0x54], esi
dec esi
mov eax, esi
sub eax, dword [esp + 0x70]
inc eax
cmp word [ecx + eax*2], 0
lea ecx, [ecx + eax*2]
mov dword [esp + 0x1c], ecx
jne 0x45ff51
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.00466ed0
mov ecx, dword [esp + 0x24]
add esp, 8
mov eax, dword [esp + 0xa4]
movzx eax, word [eax + esi*2]
test ax, ax
jne 0x45ff79
lea eax, [esp + 0x98]
push esi
push eax
call fcn.00466ed0
mov ecx, dword [esp + 0x24]
add esp, 8
movzx eax, ax
movzx edx, word [ecx]
movzx edi, ax
mov dword [esp + 0x4c], edi
test ebx, ebx
je 0x45ffba
cmp dword [esp + 0x168], 0
jne 0x45ffe9
mov ecx, dword [esp + 0x24]
add edx, ebx
dec ecx
mov eax, 2
cmp dword [esp + 0x18], ecx
mov ecx, 0
cmove eax, ecx
mov ecx, ebp
sub ecx, eax
lea eax, [edx + 2]
sub ecx, edi
cmp eax, ecx
jg 0x45ffe9
mov ecx, dword [esp + 0x1c]
mov eax, 0xfffffffe
lea ebx, [edx + 2]
sub eax, edi
mov edx, esi
mov edi, dword [esp + 0x58]
add ebp, eax
mov eax, dword [esp + 0x48]
sub ecx, 2
sub esi, 1
mov dword [esp + 0x54], edx
mov dword [esp + 0x1c], ecx
mov dword [eax + edi], edx
jns 0x45ff51
jmp 0x45fff5
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x18]
mov dword [esp + edi + 0xf8], ebx
mov dword [esp + edi + 0xf4], ebp
cmp ecx, 1
jbe 0x460012
mov eax, dword [eax + edi - 4]
jmp 0x460014
xor eax, eax
cmp edx, eax
jle 0x46009c
dec ecx
mov dword [esp + 0x18], ecx
test ecx, ecx
jg 0x45fef1
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0xec]
xor esi, esi
mov eax, dword [eax + 0x38]
lea ebp, [esi + 1]
movzx ebx, byte [eax]
mov dword [esp + 0x4c], ebx
test edx, edx
jle 0x4601db
nop dword [eax + eax]
cmp esi, dword [esp + 0x44]
jge 0x460133
mov edi, dword [esp + esi*4 + 0xec]
mov dword [esp + esi*4 + 0xd8], edi
mov dword [esp + esi*4 + 0xec], 0
mov dword [esp + 0x18], edi
mov ecx, dword [edi + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x4600cc
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x4600cc
cmp dword [edx + 0x68], 0
je 0x4600c8
push ecx
call fcn.004df360
jmp 0x4600f6
push 0x5398bc
push 0x13308
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0045a560
mov ebp, 0xb
add esp, 0x14
mov dword [esp + 0x10], ebp
jmp 0x460981
xor edx, edx
jmp 0x4600fb
mov eax, dword [edx + 0x2c]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4600db
mov edx, eax
jmp 0x4600ff
mov eax, dword [edx + 0x9c]
push ecx
cmp eax, dword [edx + 0xa8]
jbe 0x4600f1
call fcn.004843d0
jmp 0x4600f6
call fcn.004856a0
add esp, 4
mov edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x15c]
xor ecx, ecx
sub eax, dword [esp + 0x40]
inc dword [esp + 0x28]
cmp esi, eax
mov eax, dword [edi + 0x48]
sete cl
mov dword [esp + 0x20], edx
inc ecx
cmp dword [eax + 0x20], ecx
jne 0x4603d0
test edx, edx
jne 0x46097d
jmp 0x4601d0
cmp dword [esp + 0x168], 0
mov eax, dword [esp + 0x38]
push 0
cmovne eax, ebp
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x44]
call fcn.0045c3e0
mov edx, eax
add esp, 0x14
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], edx
test edx, edx
jne 0x46097d
mov edi, dword [esp + 0x18]
push ebx
push edi
call fcn.004f8ac0
mov ecx, dword [esp + 0x3c]
add esp, 8
inc dword [esp + 0x28]
mov eax, dword [esp + 0x98]
mov dword [esp + esi*4 + 0xd8], edi
cmp byte [ecx + 0x11], 0
mov dword [esp + esi*4 + 0x120], eax
je 0x4601c8
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x30]
push dword [eax + 4]
push 5
push dword [edi + 4]
push ecx
call fcn.00488680
mov eax, dword [esp + 0x34]
add esp, 0x14
mov dword [esp + 0x10], eax
test eax, eax
jne 0x46097d
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x38], eax
inc esi
cmp esi, dword [esp + 0x24]
jl 0x460050
mov edx, dword [esp + 0x28]
xor ecx, ecx
test edx, edx
jle 0x4601fb
mov eax, dword [esp + ecx*4 + 0xd8]
mov eax, dword [eax + 4]
mov dword [esp + ecx*4 + 0x134], eax
inc ecx
cmp ecx, edx
jl 0x4601e5
lea esi, [edx - 1]
xor ebp, ebp
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebp
test esi, esi
jle 0x460307
mov eax, esi
lea edi, [ebp + 1]
mov ebx, ebp
mov dword [esp + 0x70], edi
mov esi, edi
cmp edi, edx
jge 0x4602f5
mov ebp, dword [esp + 0x28]
nop dword [eax]
mov eax, dword [esp + esi*4 + 0xd8]
mov ecx, esi
mov edx, dword [esp + ebx*4 + 0xd8]
mov eax, dword [eax + 4]
cmp eax, dword [edx + 4]
cmovae ecx, ebx
inc esi
mov ebx, ecx
cmp esi, ebp
jl 0x460230
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x48], ebx
cmp ebx, ebp
je 0x4602ed
mov edi, dword [esp + 0x34]
xor edx, edx
mov eax, dword [0x56f2e8]
mov ecx, dword [esp + ebx*4 + 0xd8]
mov esi, dword [esp + ebp*4 + 0xd8]
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.004b4ef0
mov eax, dword [esp + 0x50]
push ebp
mov eax, dword [esp + eax*4 + 0xe4]
mov eax, dword [eax + 0x48]
push eax
mov word [eax + 0x1c], si
call fcn.004b4ef0
mov esi, dword [esp + 0x28]
push ebx
mov eax, dword [esp + esi*4 + 0xec]
mov eax, dword [eax + 0x48]
push eax
mov word [eax + 0x1c], di
call fcn.004b4ef0
mov eax, dword [esp + esi*4 + 0xf0]
add esp, 0x18
mov edi, dword [esp + 0x70]
mov dword [eax + 4], ebx
mov eax, dword [esp + 0x48]
mov eax, dword [esp + eax*4 + 0xd8]
mov dword [eax + 4], ebp
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov ebp, edi
mov dword [esp + 0x18], ebp
cmp ebp, eax
jl 0x460212
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + edx*4 + 0xd4]
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax + 4]
bswap eax
mov dword [ecx], eax
test bl, 8
jne 0x460352
mov ecx, dword [esp + 0x44]
cmp ecx, edx
je 0x460352
lea eax, [esp + 0xd8]
lea esi, [esp + 0xec]
cmovge eax, esi
mov eax, dword [eax + ecx*4 - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [esp + 0x28]
mov eax, dword [esp + eax*4 + 0xd4]
mov ecx, dword [eax + 0x38]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x34]
cmp byte [eax + 0x11], 0
je 0x46057d
mov esi, dword [esp + 0xd8]
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x3c], 0
movzx ebp, word [esi + 0x18]
movzx eax, byte [esi + 0xc]
add ebp, eax
cmp dword [esp + 0x98], ebx
jle 0x460584
xor eax, eax
mov edx, esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], edx
nop word [eax + eax]
mov ecx, dword [esp + 0xa0]
mov ecx, dword [ecx + ebx*4]
mov dword [esp + 0x18], ecx
cmp ebx, ebp
jne 0x460429
xor edx, edx
cmp byte [esp + 0x17], dl
sete dl
nop
inc edi
cmp edi, dword [esp + 0x28]
jge 0x460404
mov esi, dword [esp + edi*4 + 0xd8]
jmp 0x46040b
test edx, edx
jne 0x46097d
push 0x5398bc
push 0x13329
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0045a560
mov ebp, 0xb
add esp, 0x14
mov dword [esp + 0x10], ebp
jmp 0x460981
mov esi, dword [esp + edi*4 + 0xec]
movzx eax, word [esi + 0x18]
movzx ecx, byte [esi + 0xc]
add eax, edx
add ecx, eax
add ebp, ecx
cmp ebx, ebp
je 0x4603c0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
cmp ebx, dword [esp + eax + 0x10c]
jne 0x460458
mov eax, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x3c], eax
shl eax, 2
cmp byte [esp + 0x17], 0
mov dword [esp + 0x38], eax
mov edx, dword [esp + eax + 0xd8]
mov dword [esp + 0x24], edx
je 0x46056f
cmp edi, dword [esp + 0x28]
jge 0x460478
mov eax, dword [edx + 4]
cmp eax, dword [esp + edi*4 + 0x134]
jne 0x460478
cmp ecx, dword [esi + 0x38]
jb 0x460478
cmp ecx, dword [esi + 0x3c]
jb 0x46056b
cmp word [esp + 0x50], 0
jne 0x4604a7
lea eax, [esp + 0x20]
push eax
push dword [edx + 4]
mov eax, dword [ecx]
push 5
bswap eax
push eax
push dword [esp + 0x44]
call fcn.00488680
mov eax, dword [esp + 0x34]
add esp, 0x14
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xa4]
movzx eax, word [eax + ebx*2]
test ax, ax
jne 0x4604cf
lea eax, [esp + 0x98]
push ebx
push eax
call fcn.00466ed0
mov edx, dword [esp + 0x2c]
add esp, 8
movzx eax, ax
cmp ax, word [edx + 0x10]
jbe 0x460559
cmp dword [esp + 0x10], 0
jne 0x46097d
lea eax, [esp + 0x80]
push eax
push dword [esp + 0x1c]
mov eax, dword [edx + 0x50]
push edx
call eax
movzx eax, word [esp + 0x9c]
add esp, 0xc
cmp eax, dword [esp + 0x8c]
jae 0x460567
mov edx, dword [esi + 0x3c]
mov ecx, dword [esp + 0x18]
cmp ecx, edx
jae 0x460523
add eax, ecx
cmp eax, edx
ja 0x4605df
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x20]
push eax
movzx eax, word [esp + 0x96]
push dword [edx + 4]
mov eax, dword [eax + ecx - 4]
push 3
bswap eax
push eax
push dword [edx + 0x34]
call fcn.00488680
mov eax, dword [esp + 0x34]
add esp, 0x14
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], eax
jmp 0x46055d
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x46097d
jmp 0x46056b
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
inc ebx
cmp ebx, dword [esp + 0x98]
jl 0x4603a0
mov esi, dword [esp + 0xd8]
xor ebp, ebp
cmp dword [esp + 0x1c], ebp
jle 0x460727
mov edi, dword [esp + ebp*4 + 0x10c]
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + ebp*4 + 0xd8]
mov ebx, dword [esp + 0x6c]
add ebx, dword [esp + 0x60]
mov esi, dword [eax + edi*4]
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x50]
movzx edx, cx
mov ecx, dword [esp + 0x3c]
movzx eax, word [eax + edi*2]
add edx, eax
cmp byte [ecx + 8], 0
jne 0x46060b
mov ecx, dword [ecx + 0x38]
mov eax, dword [esi]
mov dword [ecx + 8], eax
jmp 0x4606bd
push 0x5398bc
push 0x117f7
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0045a560
mov ebp, 0xb
add esp, 0x14
mov dword [esp + 0x10], ebp
jmp 0x460981
cmp byte [esp + 0x17], 0
je 0x4606a4
lea eax, [esp + 0x80]
dec edi
push eax
mov eax, dword [esp + 0xa4]
push dword [eax + edi*4]
mov eax, dword [ecx + 0x50]
push ecx
call eax
mov edx, dword [esp + 0x90]
mov esi, ebx
mov ecx, dword [esp + 0x8c]
add esp, 0xc
add ebx, 4
test edx, edx
ja 0x460692
jb 0x460654
cmp ecx, 0x7f
ja 0x460668
mov eax, 1
and cl, 0x7f
mov byte [ebx], cl
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x4606bd
test edx, edx
ja 0x460692
jb 0x460676
cmp ecx, 0x3fff
ja 0x460692
mov eax, ecx
and cl, 0x7f
shrd eax, edx, 7
mov byte [ebx + 1], cl
or al, 0x80
mov byte [ebx], al
mov eax, 2
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x4606bd
push edx
push ecx
push ebx
call fcn.00488f10
add esp, 0xc
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x4606bd
sub esi, 4
cmp eax, 4
jne 0x4606bd
mov eax, dword [esp + 0x2c]
push esi
push eax
mov eax, dword [eax + 0x4c]
call eax
add esp, 8
movzx edx, ax
add dword [esp + 0x6c], edx
xor eax, eax
cmp dword [esp + eax*4 + 0xc0], edi
jg 0x4606d2
inc eax
cmp eax, 6
jl 0x4606c3
mov ecx, dword [esp + eax*4 + 0xa8]
cmp esi, ecx
jae 0x4606e8
lea eax, [edx + esi]
cmp eax, ecx
ja 0x460787
mov eax, dword [esp + 0x3c]
push dword [eax + 4]
mov eax, dword [esp + 0x44]
push ebx
push edx
push esi
add eax, ebp
push eax
push dword [esp + 0x40]
call fcn.004766a0
add esp, 0x18
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
test eax, eax
jne 0x46097d
inc ebp
cmp ebp, dword [esp + 0x1c]
jl 0x460590
mov esi, dword [esp + 0xd8]
mov ebx, dword [esp + 0x28]
mov edi, 1
sub edi, ebx
mov dword [esp + 0x3c], edi
cmp edi, ebx
jge 0x460850
mov ebp, dword [esp + 0x10c]
mov eax, edi
lea ebx, [esp + 0x148]
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
add ebx, ecx
cmp byte [ebx], 0
jne 0x460838
test edi, edi
jns 0x460778
mov eax, dword [esp + ecx*4 + 0x11c]
cmp eax, dword [esp + ecx*4 + 0x108]
jl 0x460838
test ecx, ecx
jne 0x4607b3
xor eax, eax
mov esi, ebp
xor edx, edx
jmp 0x4607eb
push 0x5398bc
push 0x133f1
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0045a560
mov ebp, 0xb
add esp, 0x14
mov dword [esp + 0x10], ebp
jmp 0x460981
cmp ecx, dword [esp + 0x44]
jge 0x4607cb
xor eax, eax
cmp byte [esp + 0x17], al
sete al
add eax, dword [esp + ecx*4 + 0x11c]
jmp 0x4607d2
mov eax, dword [esp + 0x98]
mov esi, dword [esp + ecx*4 + 0x10c]
xor edx, edx
cmp byte [esp + 0x17], dl
sete dl
add edx, dword [esp + ecx*4 + 0x108]
sub esi, edx
lea edi, [ecx*4]
lea ecx, [esp + 0x98]
push ecx
push esi
push edx
push eax
push dword [esp + edi + 0xe8]
call fcn.0046a8f0
add esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
test eax, eax
jne 0x46097d
mov eax, dword [esp + edi + 0xd8]
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + edi + 0xf8]
mov edi, dword [esp + 0x3c]
mov byte [ebx], 1
mov dword [eax + 0x14], ecx
mov ebx, dword [esp + 0x28]
inc edi
mov dword [esp + 0x3c], edi
cmp edi, ebx
jl 0x460745
mov esi, dword [esp + 0xd8]
cmp dword [esp + 0x164], 0
je 0x4608cc
mov ebp, dword [esp + 0x2c]
cmp word [ebp + 0x18], 0
jne 0x4608cc
movzx eax, byte [ebp + 9]
cmp eax, dword [esi + 0x14]
jg 0x4608cc
push 0xffffffffffffffff
push esi
call fcn.00469d00
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
push ebp
push dword [esp + 0xe8]
call fcn.00468e90
mov edx, dword [esp + 0x34]
add esp, 0x14
mov dword [esp + 0x10], edx
test edx, edx
jne 0x46092a
mov eax, dword [esp + 0xd8]
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.00472e80
mov edx, eax
add esp, 0xc
mov dword [esp + 0x10], edx
jmp 0x46092a
mov ecx, dword [esp + 0x34]
cmp byte [ecx + 0x11], 0
je 0x460926
cmp word [esp + 0x50], 0
jne 0x460926
xor esi, esi
test ebx, ebx
jle 0x460926
nop dword [eax]
mov eax, dword [esp + esi*4 + 0xd8]
lea edx, [esp + 0x20]
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.00488680
mov ecx, dword [esp + 0x48]
inc esi
add esp, 0x14
cmp esi, ebx
jl 0x4608f0
mov edx, dword [esp + 0x20]
mov dword [esp + 0x10], edx
jmp 0x46092a
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x44]
mov esi, ebx
cmp ebx, ebp
jge 0x46097d
nop dword [eax + eax]
mov eax, dword [esp + esi*4 + 0xec]
test edx, edx
jne 0x46095c
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.00472e80
add esp, 0xc
mov edx, eax
inc esi
cmp esi, ebp
jl 0x460940
mov dword [esp + 0x10], edx
jmp 0x46097d
lea eax, [edi + 4]
push eax
lea eax, [esp + 0xf0]
push 0
push eax
call fcn.004fd610
add esp, 0xc
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0xa0]
test ebx, ebx
je 0x4609e5
cmp dword [0x56f0f8], 0
je 0x4609db
mov eax, dword [0x574ff8]
test eax, eax
je 0x4609ac
push eax
call dword [0x56f148]
add esp, 4
push ebx
call dword [0x56f124]
sub dword [0x574f98], eax
dec dword [0x574fbc]
push ebx
call dword [0x56f11c]
mov eax, dword [0x574ff8]
add esp, 8
test eax, eax
je 0x4609e5
push eax
call dword [0x56f150]
jmp 0x4609e2
push ebx
call dword [0x56f11c]
add esp, 4
xor ebx, ebx
cmp dword [esp + 0x44], ebx
jle 0x460a73
mov ebp, dword [esp + 0x44]
nop word [eax + eax]
mov edx, dword [esp + ebx*4 + 0xec]
test edx, edx
je 0x460a6a
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x460a61
mov ecx, dword [edx + 0x14]
dec dword [ecx + 0x80]
mov eax, dword [ecx + 0x90]
mov dword [edx + 0x10], eax
mov esi, dword [ecx + 0x40]
mov dword [ecx + 0x90], edx
push dword [edx + 4]
mov eax, dword [edx + 0x18]
push dword [ecx + 0xac]
mov edi, dword [esi]
dec eax
push dword [ecx + 0xa8]
push 0
push eax
call fcn.004fc310
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x460a6a
push edx
call fcn.004b4fc0
add esp, 4
inc ebx
cmp ebx, ebp
jl 0x460a00
mov ebp, dword [esp + 0x10]
xor ebx, ebx
cmp dword [esp + 0x28], ebx
jle 0x460b03
mov ebp, dword [esp + 0x28]
nop dword [eax]
nop word [eax + eax]
mov edx, dword [esp + ebx*4 + 0xd8]
test edx, edx
je 0x460afa
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x460af1
mov ecx, dword [edx + 0x14]
dec dword [ecx + 0x80]
mov eax, dword [ecx + 0x90]
mov dword [edx + 0x10], eax
mov esi, dword [ecx + 0x40]
mov dword [ecx + 0x90], edx
push dword [edx + 4]
mov eax, dword [edx + 0x18]
push dword [ecx + 0xac]
mov edi, dword [esi]
dec eax
push dword [ecx + 0xa8]
push 0
push eax
call fcn.004fc310
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x460afa
push edx
call fcn.004b4fc0
add esp, 4
inc ebx
cmp ebx, ebp
jl 0x460a90
mov ebp, dword [esp + 0x10]
mov eax, ebp
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004fb4f7
add esp, 0x144
ret